Skip to content

Commit

Permalink
python310Packages.pillow: 9.4.0 -> 9.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Apr 27, 2023
1 parent d27f79a commit d0f2ea3
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions pkgs/development/python-modules/pillow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, pythonOlder
, fetchPypi
, isPyPy
, fetchpatch
, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11
, libxcb, openjpeg, libimagequant, pyroma, numpy, pytestCheckHook
# for passthru.tests
Expand All @@ -12,17 +13,41 @@

import ./generic.nix (rec {
pname = "pillow";
version = "9.4.0";
version = "9.5.0";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
pname = "Pillow";
inherit version;
hash = "sha256-ocLXeARI65P7zDeJvzkWqlcg2ULjeUX0BWaAMX8c0j4=";
hash = "sha256-v1SEedM2cm16Ds6252fhefveN4M65CeUYCYxoHDWMPE=";
};

# Reverts 04cf5e2cfc5dc1676efd9f5c8d605ddfccb0f9ee, which prevents pillow from
# finding zlib. This has been fixed upstream, so this patch can be removed on
# next pillow update.
patches = [
(fetchpatch {
name = "revert-multiple-paths-in-pkgconfig1.patch";
url = "https://github.com/python-pillow/pillow/commit/17a0a2ee3eeb9df6e9fcf894d204911c7e6e4eef.patch";
sha256 = "sha256-wAJfCYhBmXaVcVMwNBTk7kCpuJucAmetJTWtL155Ybc=";
revert = true;
})
(fetchpatch {
name = "revert-multiple-paths-in-pkgconfig2.patch";
url = "https://github.com/python-pillow/pillow/commit/a0492f796876c2a9b8ba445d72c771b84eff93a5.patch";
sha256 = "sha256-vCBRczrl9v5QWrYkt85Nb06+ZXKt9GxTxg3djn4/m2o=";
revert = true;
})
(fetchpatch {
name = "revert-multiple-paths-in-pkgconfig3.patch";
url = "https://github.com/python-pillow/pillow/commit/04cf5e2cfc5dc1676efd9f5c8d605ddfccb0f9ee.patch";
sha256 = "sha256-7uvNEUk6fBCBkwcqg6njhsAJGla11diz8KY966zsxew";
revert = true;
})
];

passthru.tests = {
inherit imageio matplotlib pilkit pydicom reportlab;
};
Expand Down

0 comments on commit d0f2ea3

Please sign in to comment.