buildPythonPackage: fix more borken packages

This commit is contained in:
Domen Kožar
2014-02-21 14:29:32 +01:00
parent 567e67f05f
commit f1db57f1fe
5 changed files with 18 additions and 18 deletions

View File

@@ -72,8 +72,7 @@ python.stdenv.mkDerivation (attrs // {
checkPhase = attrs.checkPhase or ''
runHook preCheck
# reduce output to only dots, if a test fails error output will include verbose info
${python}/bin/${python.executable} setup.py test -q
${python}/bin/${python.executable} setup.py test
runHook postCheck
'';

View File

@@ -14,16 +14,15 @@ buildPythonPackage {
doCheck = true;
configurePhase = ''
preConfigure = ''
sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${freetype}")|g ;
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${libjpeg}")|g ;
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${zlib}")|g ;'
'';
buildPhase = "python setup.py build_ext -i";
checkPhase = "python selftest.py";
#installPhase = "python setup.py install --prefix=$out";
buildPhase = "python setup.py build_ext -i";
meta = {
homepage = http://www.pythonware.com/products/pil/;