about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pillow
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-06-06 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-06-06 04:20:00 -0500
commit5b11e8d4be0d0f71b5203c118b424688f910415d (patch)
tree9a4038e249f20d99de693c4821a60a1b1c9bc7c0 /pkgs/development/python-modules/pillow
parent04588dd0e4d859eaaf768ad448eb7f49e49e855a (diff)
python37Packages.pillow: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules/pillow')
-rw-r--r--pkgs/development/python-modules/pillow/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix
index 2f9fac6c3d170..bd7a9b0e61b97 100644
--- a/pkgs/development/python-modules/pillow/default.nix
+++ b/pkgs/development/python-modules/pillow/default.nix
@@ -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 ]