diff options
author | Kevin Mehall <km@kevinmehall.net> | 2022-06-02 22:32:28 +0000 |
---|---|---|
committer | Kevin Mehall <km@kevinmehall.net> | 2022-06-03 13:38:13 -0700 |
commit | c4897187fb65ea76dd18d22f6ca292834dcafacb (patch) | |
tree | f9acd26e18592557828e382993e177c3c92ba048 /pkgs/development/python-modules/pillow | |
parent | 6ffe4109839c62ccd7347f915f6b810768fc99f8 (diff) |
python3Packages.pillow: Add patch to fix failing test with libtiff 4.4.0
Diffstat (limited to 'pkgs/development/python-modules/pillow')
-rw-r--r-- | pkgs/development/python-modules/pillow/default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/python-modules/pillow/generic.nix | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index 47ed191c6d993..bd14a9d7c015d 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, fetchpatch , buildPythonPackage , pythonOlder , fetchPypi @@ -22,6 +23,14 @@ import ./generic.nix (rec { sha256 = "f401ed2bbb155e1ade150ccc63db1a4f6c1909d3d378f7d1235a44e90d75fb97"; }; + patches = [ + # Fix failing test with libtiff 4.4.0 + (fetchpatch { + url = "https://github.com/python-pillow/Pillow/commit/40a918d274182b7d7c063d7797fb77d967982c4a.patch"; + sha256 = "sha256-f8m3Xt3V3pHggK1JEc2tnPmrTVPFjfV4YJqwE1KM1pA="; + }) + ]; + passthru.tests = { inherit imageio matplotlib pilkit pydicom reportlab; }; diff --git a/pkgs/development/python-modules/pillow/generic.nix b/pkgs/development/python-modules/pillow/generic.nix index 97c67fd5fa49f..ec4f052638206 100644 --- a/pkgs/development/python-modules/pillow/generic.nix +++ b/pkgs/development/python-modules/pillow/generic.nix @@ -2,6 +2,7 @@ , version , disabled , src +, patches ? [] , meta , passthru ? {} , ... @@ -10,7 +11,7 @@ with args; buildPythonPackage rec { - inherit pname version src meta passthru; + inherit pname version src meta passthru patches; # Disable imagefont tests, because they don't work well with infinality: # https://github.com/python-pillow/Pillow/issues/1259 |