From 9105610435a02a0204956ecb5feb80980b7c37be Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 12 Nov 2022 14:32:26 +0100 Subject: [PATCH] python3Packages.pillow: 9.2.0 -> 9.3.0 https://github.com/python-pillow/Pillow/blob/9.3.0/CHANGES.rst Pass through format to generic builder, updated disabled tests thereby recovering pillow-simd. --- .../python-modules/pillow-simd/default.nix | 2 ++ .../python-modules/pillow/default.nix | 5 +++-- .../python-modules/pillow/generic.nix | 17 +++++++++-------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pillow-simd/default.nix b/pkgs/development/python-modules/pillow-simd/default.nix index b39a86a7fbfc..f16ef4465562 100644 --- a/pkgs/development/python-modules/pillow-simd/default.nix +++ b/pkgs/development/python-modules/pillow-simd/default.nix @@ -9,6 +9,8 @@ import ../pillow/generic.nix (rec { # check for release version on https://pypi.org/project/Pillow-SIMD/#history # does not match the latest pillow release version! version = "9.0.0.post1"; + format = "setuptools"; + disabled = !isPy3k; src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index 6e50be53f99d..05fe40802c5d 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -12,14 +12,15 @@ import ./generic.nix (rec { pname = "pillow"; - version = "9.2.0"; + version = "9.3.0"; + format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { pname = "Pillow"; inherit version; - sha256 = "sha256-deY2/T4PuHJpPyPMuKX/LNV4gBJR86T2hUxqXUN9PAQ="; + hash = "sha256-yTWiKlV6VgEI14D5oPxCbddFmUDcVPqknYMknI0+dg8="; }; passthru.tests = { diff --git a/pkgs/development/python-modules/pillow/generic.nix b/pkgs/development/python-modules/pillow/generic.nix index 54f730751076..adad6038964c 100644 --- a/pkgs/development/python-modules/pillow/generic.nix +++ b/pkgs/development/python-modules/pillow/generic.nix @@ -11,7 +11,7 @@ with args; buildPythonPackage rec { - inherit pname version src meta passthru patches; + inherit pname version format src meta passthru patches; # Disable imagefont tests, because they don't work well with infinality: # https://github.com/python-pillow/Pillow/issues/1259 @@ -19,18 +19,19 @@ buildPythonPackage rec { rm Tests/test_imagefont.py ''; - # Disable darwin tests which require executables: `iconutil` and `screencapture` - disabledTests = lib.optionals stdenv.isDarwin [ - "test_grab" - "test_grabclipboard" - "test_save" + disabledTests = [ + # Code quality mismathch 9 vs 10 + "test_pyroma" # pillow-simd "test_roundtrip" "test_basic" - ] ++ lib.optionals (lib.versions.major version == "6") [ - # RuntimeError: Error setting from dictionary "test_custom_metadata" + ] ++ lib.optionals stdenv.isDarwin [ + # Disable darwin tests which require executables: `iconutil` and `screencapture` + "test_grab" + "test_grabclipboard" + "test_save" ]; propagatedBuildInputs = [ olefile ]