~ruther/guix-local

35efbe5acc34f46c5a6ef40cac70dad9f32b71b8 — Ricardo Wurmus 1 year, 6 months ago c2ef6ce
gnu: python-pillow: Update to 11.1.0.

* gnu/packages/python-xyz.scm (python-pillow): Update to 11.1.0.
[source]: Remove snippet.
[propagated-inputs]: Remove.
[native-inputs]: Add python-check-manifest, python-coverage,
python-defusedxml, python-markdown2, python-olefile, python-packaging,
python-pytest-cov, python-pytest-timeout, and python-trove-classifiers.

Change-Id: I6f9c62746c3d20c9ea4d45f51f0f3ad0e6a55fc3
1 files changed, 31 insertions(+), 26 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +31 -26
@@ 10988,22 10988,42 @@ Python list with elements of type @code{PIL.Image} (from the
(define-public python-pillow
  (package
    (name "python-pillow")
    (version "9.2.0")
    (version "11.1.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "Pillow" version))
              (uri (pypi-uri "pillow" version))
              (sha256
               (base32
                "011wgm1mssjchpva9wsi2a07im9czyjvik137xlp5f0g7vykdrkm"))
              (modules '((guix build utils)))
              (snippet '(begin
                          (delete-file-recursively "src/thirdparty")))
              (patches
               (search-patches "python-pillow-CVE-2022-45199.patch"
                               ;; Included in 10.1.0.
                               "python-pillow-use-zlib-1.3.patch"))))
                "081abgpz7g013cgzz7pjhmf8m7q626ngza4hnfs76vdk104ag39n"))))
    (build-system pyproject-build-system)
    (native-inputs (list python-pytest python-setuptools python-wheel))
    (arguments
     (list
      #:phases
      '(modify-phases %standard-phases
         (add-after 'unpack 'patch-ldconfig
           (lambda _
             (substitute* "setup.py"
               (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
         (replace 'check
           (lambda* (#:key outputs inputs tests? #:allow-other-keys)
             (when tests?
               (setenv "HOME"
                       (getcwd))
               (add-installed-pythonpath inputs outputs)
               (invoke "python" "selftest.py" "--installed")
               (invoke "python" "-m" "pytest" "-vv")))))))
    (native-inputs (list python-check-manifest
                         python-coverage
                         python-defusedxml
                         python-markdown2
                         python-olefile
                         python-packaging
                         python-pytest
                         python-pytest-cov
                         python-pytest-timeout
                         python-setuptools
                         python-trove-classifiers
                         python-wheel))
    (inputs (list freetype
                  lcms
                  libjpeg-turbo


@@ 11011,21 11031,6 @@ Python list with elements of type @code{PIL.Image} (from the
                  libwebp
                  openjpeg
                  zlib))
    (propagated-inputs (list python-olefile))
    (arguments
     `(#:phases (modify-phases %standard-phases
                  (add-after 'unpack 'patch-ldconfig
                    (lambda _
                      (substitute* "setup.py"
                        (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
                  (replace 'check
                    (lambda* (#:key outputs inputs tests? #:allow-other-keys)
                      (when tests?
                        (setenv "HOME"
                                (getcwd))
                        (add-installed-pythonpath inputs outputs)
                        (invoke "python" "selftest.py" "--installed")
                        (invoke "python" "-m" "pytest" "-vv")))))))
    (home-page "https://python-pillow.org")
    (synopsis "Fork of the Python Imaging Library")
    (description