python37Packages.pillow: fix build on darwin

This commit is contained in:
Mario Rodas 2020-06-06 04:20:00 -05:00
parent 04588dd0e4
commit 5b11e8d4be

View File

@ -2,7 +2,7 @@
, olefile , olefile
, freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2, tk, libX11 , freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2, tk, libX11
, openjpeg, libimagequant , openjpeg, libimagequant
, pytest, pytestrunner, pyroma, numpy , pyroma, numpy, pytestCheckHook
, isPy3k , isPy3k
}: }:
@ -23,15 +23,12 @@ buildPythonPackage rec {
rm Tests/test_imagefont.py rm Tests/test_imagefont.py
''; '';
checkPhase = '' # Disable darwin tests which require executables: `iconutil` and `screencapture`
runHook preCheck disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_save" "test_grab" "test_grabclipboard" ];
python -m pytest -v -x -W always
runHook postCheck
'';
propagatedBuildInputs = [ olefile ]; propagatedBuildInputs = [ olefile ];
checkInputs = [ pytest pytestrunner pyroma numpy ]; checkInputs = [ pytestCheckHook pyroma numpy ];
buildInputs = [ buildInputs = [
freetype libjpeg openjpeg libimagequant zlib libtiff libwebp tcl lcms2 ] freetype libjpeg openjpeg libimagequant zlib libtiff libwebp tcl lcms2 ]