buildPythonPackage: Handle patches.
svn path=/nixpkgs/trunk/; revision=15708
This commit is contained in:
parent
bede9c4d50
commit
4fc80e9497
@ -32,6 +32,11 @@ python.stdenv.mkDerivation rec {
|
|||||||
then attrs.propagatedBuildInputs
|
then attrs.propagatedBuildInputs
|
||||||
else []);
|
else []);
|
||||||
|
|
||||||
|
patches =
|
||||||
|
(if attrs ? patches
|
||||||
|
then attrs.patches
|
||||||
|
else []);
|
||||||
|
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
|
|
||||||
doCheck =
|
doCheck =
|
||||||
@ -42,6 +47,8 @@ python.stdenv.mkDerivation rec {
|
|||||||
# Many packages, but not all, support this.
|
# Many packages, but not all, support this.
|
||||||
checkPhase = "python setup.py test";
|
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 = ''
|
installPhase = ''
|
||||||
ensureDir "$out/lib/${python.libPrefix}/site-packages"
|
ensureDir "$out/lib/${python.libPrefix}/site-packages"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user