Skip to content

Commit

Permalink
python3Packages.pillow: Add patch to fix failing test with libtiff 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Jun 3, 2022
1 parent 6ffe410 commit c489718
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/pillow/default.nix
@@ -1,5 +1,6 @@
{ lib
, stdenv
, fetchpatch
, buildPythonPackage
, pythonOlder
, fetchPypi
Expand All @@ -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;
};
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/pillow/generic.nix
Expand Up @@ -2,6 +2,7 @@
, version
, disabled
, src
, patches ? []
, meta
, passthru ? {}
, ...
Expand All @@ -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
Expand Down

0 comments on commit c489718

Please sign in to comment.