gnu: python-pillow: Update to 9.0.0 (security fixes).

* gnu/packages/python-xyz.scm (python-pillow): Update to 9.0.0.
[source]: Add snippet to remove bundled code.
[arguments]: Adjust custom 'check phase.
This commit is contained in:
Efraim Flashner 2022-01-23 20:22:42 +02:00
parent d7085a3c50
commit 656c7bc805
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -14,7 +14,7 @@
;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name> ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com> ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com> ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2015, 2017, 2020 Kyle Meyer <kyle@kyleam.com> ;;; Copyright © 2015, 2017, 2020 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com> ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
@ -7089,14 +7089,18 @@ (define-public python-pikepdf
(define-public python-pillow (define-public python-pillow
(package (package
(name "python-pillow") (name "python-pillow")
(version "8.1.1") (version "9.0.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "Pillow" version)) (uri (pypi-uri "Pillow" version))
(sha256 (sha256
(base32 (base32
"086g7nhv52wclrwnzbzs2x3nvyzs2hfq1bvgivsrp5f7r7wiiz7n")))) "0gjry0yqryd2678sm47jhdnbghzxn5wk8pgyaqwr4qi7x5ijjvpf"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "src/thirdparty")))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest))
@ -7119,14 +7123,12 @@ (define-public python-pillow
(("\\['/sbin/ldconfig', '-p'\\]") "['true']")))) (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
(replace 'check (replace 'check
(lambda* (#:key outputs inputs tests? #:allow-other-keys) (lambda* (#:key outputs inputs tests? #:allow-other-keys)
(if tests? (when tests?
(begin
(setenv "HOME" (getcwd)) (setenv "HOME" (getcwd))
;; Make installed package available for running the tests. ;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "python" "selftest.py" "--installed") (invoke "python" "selftest.py" "--installed")
(invoke "python" "-m" "pytest" "-vv")) (invoke "python" "-m" "pytest" "-vv")))))))
#t))))))
(home-page "https://python-pillow.org") (home-page "https://python-pillow.org")
(synopsis "Fork of the Python Imaging Library") (synopsis "Fork of the Python Imaging Library")
(description (description