diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-05-24 21:14:32 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-05-24 21:14:32 +0000 |
commit | 4fc80e949711e9792f896e06fc5b3c6fdc593c4e (patch) | |
tree | a9e49341f7bd139d7841b0ee7023d490b17debd4 /pkgs/development/python-modules/generic | |
parent | bede9c4d50ed8d079dc386ff1c5964f3f1816e8b (diff) | |
download | nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar.gz nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar.bz2 nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar.lz nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar.xz nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.tar.zst nixpkgs-4fc80e949711e9792f896e06fc5b3c6fdc593c4e.zip |
buildPythonPackage: Handle patches.
svn path=/nixpkgs/trunk/; revision=15708
Diffstat (limited to 'pkgs/development/python-modules/generic')
-rw-r--r-- | pkgs/development/python-modules/generic/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 9af5312ad07..91869923be1 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -32,6 +32,11 @@ python.stdenv.mkDerivation rec { then attrs.propagatedBuildInputs else []); + patches = + (if attrs ? patches + then attrs.patches + else []); + buildPhase = "true"; doCheck = @@ -42,6 +47,8 @@ python.stdenv.mkDerivation rec { # Many packages, but not all, support this. checkPhase = "python setup.py test"; + # XXX: Should we run `easy_install --always-unzip'? It doesn't seem + # to have a noticeable impact on small scripts. installPhase = '' ensureDir "$out/lib/${python.libPrefix}/site-packages" |