python37Packages.pillow: fix build on darwin
This commit is contained in:
parent
04588dd0e4
commit
5b11e8d4be
1 changed files with 4 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
, olefile
|
||||
, freetype, libjpeg, zlib, libtiff, libwebp, tcl, lcms2, tk, libX11
|
||||
, openjpeg, libimagequant
|
||||
, pytest, pytestrunner, pyroma, numpy
|
||||
, pyroma, numpy, pytestCheckHook
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
|
@ -23,15 +23,12 @@ buildPythonPackage rec {
|
|||
rm Tests/test_imagefont.py
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
python -m pytest -v -x -W always
|
||||
runHook postCheck
|
||||
'';
|
||||
# Disable darwin tests which require executables: `iconutil` and `screencapture`
|
||||
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_save" "test_grab" "test_grabclipboard" ];
|
||||
|
||||
propagatedBuildInputs = [ olefile ];
|
||||
|
||||
checkInputs = [ pytest pytestrunner pyroma numpy ];
|
||||
checkInputs = [ pytestCheckHook pyroma numpy ];
|
||||
|
||||
buildInputs = [
|
||||
freetype libjpeg openjpeg libimagequant zlib libtiff libwebp tcl lcms2 ]
|
||||
|
|
Loading…
Reference in a new issue