summary refs log tree commit diff
path: root/pkgs/development/python-modules/stringtemplate
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-09-25 22:36:30 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-09-25 22:41:26 +0200
commit941ee1ba6ede1a3424b1478bcb10b418fdb67604 (patch)
tree16792b81362ee920dc6f96273093fa36cede50df /pkgs/development/python-modules/stringtemplate
parentf5cddb610d1326660555d3e3b4bd5f8c582d6c56 (diff)
downloadnixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar.gz
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar.bz2
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar.lz
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar.xz
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.tar.zst
nixlib-941ee1ba6ede1a3424b1478bcb10b418fdb67604.zip
pystringtemplate -> pythonPackages.pystringtemplate
and use buildPythonPackage
Diffstat (limited to 'pkgs/development/python-modules/stringtemplate')
-rw-r--r--pkgs/development/python-modules/stringtemplate/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/stringtemplate/default.nix b/pkgs/development/python-modules/stringtemplate/default.nix
index 18b920381943..50a425132a26 100644
--- a/pkgs/development/python-modules/stringtemplate/default.nix
+++ b/pkgs/development/python-modules/stringtemplate/default.nix
@@ -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/";