diff options
Diffstat (limited to 'pkgs/development/python-modules/img2pdf/default.nix')
-rw-r--r-- | pkgs/development/python-modules/img2pdf/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix index f1a8dcde69e21..58e3db524a82a 100644 --- a/pkgs/development/python-modules/img2pdf/default.nix +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -2,8 +2,10 @@ , buildPythonPackage , isPy27 , fetchPypi +, fetchpatch , pikepdf , pillow +, stdenv , exiftool , ghostscript , imagemagick @@ -25,11 +27,23 @@ buildPythonPackage rec { sha256 = "sha256-jlHFBD76lddRSBtRYHGgBvh8KkBZlhqaxD7COJFd4J8="; }; + patches = [ + # Disable tests broken by Pillow 9.0.0 + # https://gitlab.mister-muffin.de/josch/img2pdf/issues/130#issuecomment-586 + (fetchpatch { + url = "https://salsa.debian.org/debian/img2pdf/-/raw/f77fefc81e7c4b235c47ae6777d222d391c59536/debian/patches/pillow9"; + sha256 = "sha256-8giZCuv5PzSbrBQqslNqiLOhgxbg3LsdBVwt+DWnvh4="; + }) + ]; + propagatedBuildInputs = [ pikepdf pillow ]; + # https://gitlab.mister-muffin.de/josch/img2pdf/issues/128 + doCheck = !stdenv.isAarch64; + checkInputs = [ exiftool ghostscript |