pystringtemplate -> pythonPackages.pystringtemplate
and use buildPythonPackage
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user