summary refs log tree commit diff
path: root/pkgs/development/python-modules/stringtemplate
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-05-04 10:08:35 +0000
committerRobin Gloster <mail@glob.in>2016-05-04 10:11:04 +0000
commit9820cb1bf24254199db05856bbb4919378ac75cb (patch)
tree6c6bfeb09e5799573e7546419e3496a6fcf0863a /pkgs/development/python-modules/stringtemplate
parentaadaa913792b0fdeb68b02425e4f03d2f8286a1f (diff)
downloadnixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.gz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.bz2
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.lz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.xz
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.zst
nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.zip
use dontBuild instead of hacks
changes:
 * buildPhase = "true"
 * buildPhase = ":"
Diffstat (limited to 'pkgs/development/python-modules/stringtemplate')
-rw-r--r--pkgs/development/python-modules/stringtemplate/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/stringtemplate/default.nix b/pkgs/development/python-modules/stringtemplate/default.nix
index f70888f102f..5e372535b8e 100644
--- a/pkgs/development/python-modules/stringtemplate/default.nix
+++ b/pkgs/development/python-modules/stringtemplate/default.nix
@@ -3,15 +3,22 @@
 stdenv.mkDerivation rec {
   name = "PyStringTemplate-${version}";
   version = "3.2b1";
-  meta = {
-    homepage = "http://www.stringtemplate.org/";
-    description = "Text Templating Library";
-  };
+
   src = fetchurl {
     url = "http://www.stringtemplate.org/download/${name}.tar.gz";
     sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml";
   };
+
   propagatedBuildInputs = [python antlr];
-  buildPhase = "true";
-  installPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1";
+
+  dontBuild = true;
+
+  installPhase = ''
+    python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1
+  '';
+
+  meta = {
+    homepage = "http://www.stringtemplate.org/";
+    description = "Text Templating Library";
+  };
 }