pystringtemplate -> pythonPackages.pystringtemplate

and use buildPythonPackage
This commit is contained in:
Frederik Rietdijk
2016-09-25 22:36:30 +02:00
parent f5cddb610d
commit 941ee1ba6e
3 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{stdenv, fetchurl, python, antlr}:
{stdenv, fetchurl, buildPythonPackage, antlr, isPy3k}:
stdenv.mkDerivation rec {
buildPythonPackage rec {
name = "PyStringTemplate-${version}";
version = "3.2b1";
@@ -9,13 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml";
};
propagatedBuildInputs = [python antlr];
propagatedBuildInputs = [ antlr ];
dontBuild = true;
disabled = isPy3k;
installPhase = ''
python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1
'';
# No tests included in archive
doCheck = false;
meta = {
homepage = "http://www.stringtemplate.org/";