From 4fc80e949711e9792f896e06fc5b3c6fdc593c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 24 May 2009 21:14:32 +0000 Subject: [PATCH] buildPythonPackage: Handle patches. svn path=/nixpkgs/trunk/; revision=15708 --- pkgs/development/python-modules/generic/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 9af5312ad07d..91869923be13 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"