python3Packages.pillow: Add patch to fix failing test with libtiff 4.4.0

main
Kevin Mehall 2 years ago
parent 6ffe410983
commit c4897187fb
  1. 9
      pkgs/development/python-modules/pillow/default.nix
  2. 3
      pkgs/development/python-modules/pillow/generic.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;
};

@ -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

Loading…
Cancel
Save