python313Packages.pillow: 11.1.0 -> 11.2.0

https://pillow.readthedocs.io/en/stable/releasenotes/11.2.0.html
This commit is contained in:
Martin Weinelt
2025-04-03 23:13:22 +02:00
parent 96acc0e858
commit 605b2c9cb6
2 changed files with 16 additions and 5 deletions
@@ -12,6 +12,7 @@
# native dependencies
freetype,
lcms2,
libavif,
libimagequant,
libjpeg,
libraqm,
@@ -20,7 +21,7 @@
libxcb,
openjpeg,
tkinter,
zlib,
zlib-ng,
# optional dependencies
defusedxml,
@@ -43,14 +44,14 @@
buildPythonPackage rec {
pname = "pillow";
version = "11.1.0";
version = "11.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-pillow";
repo = "pillow";
tag = version;
hash = "sha256-9tcukZIJMheVNBfpppjUcuhvRal7J59iQWgBqkEgJDk=";
hash = "sha256-gr6S0FTM/VMnqj35E9U5G3BJ203f0XQzgzYCQ81WL/Y=";
};
build-system = [ setuptools ];
@@ -61,6 +62,7 @@ buildPythonPackage rec {
buildInputs = [
freetype
lcms2
libavif
libimagequant
libjpeg
libraqm
@@ -69,7 +71,7 @@ buildPythonPackage rec {
libxcb
openjpeg
tkinter
zlib
zlib-ng
];
pypaBuildFlags = [
@@ -84,6 +86,7 @@ buildPythonPackage rec {
''
# The build process fails to find the pkg-config files for these dependencies
substituteInPlace setup.py \
--replace-fail 'AVIF_ROOT = None' 'AVIF_ROOT = ${getLibAndInclude libavif}' \
--replace-fail 'IMAGEQUANT_ROOT = None' 'IMAGEQUANT_ROOT = ${getLibAndInclude libimagequant}' \
--replace-fail 'JPEG2K_ROOT = None' 'JPEG2K_ROOT = ${getLibAndInclude openjpeg}'
@@ -105,6 +108,13 @@ buildPythonPackage rec {
numpy
] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [
# AssertionError: average pixel value difference 12.0968 > epsilon 11.5000
"--deselect=Tests/test_file_avif.py::TestFileAvif::test_read"
# AssertionError: average pixel value difference 8.0108 > epsilon 6.0200
"--deselect=Tests/test_file_avif.py::TestFileAvif::test_write_rgb"
];
disabledTests =
[
# Code quality mismathch 9 vs 10
+2 -1
View File
@@ -10956,13 +10956,14 @@ self: super: with self; {
inherit (pkgs)
freetype
lcms2
libavif
libimagequant
libjpeg
libraqm
libtiff
libwebp
openjpeg
zlib
zlib-ng
;
inherit (pkgs.xorg) libxcb;
};