gnu: python-pillow: Update to 9.0.0.

* gnu/packages/python-xyz.scm (python-pillow): Update to 9.0.0.
This commit is contained in:
Maxim Cournoyer 2022-05-05 22:57:22 -04:00
parent 493ee41ada
commit dba760f78c
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -6808,33 +6808,27 @@ (define-public python-pillow
(package (package
(name "python-pillow") (name "python-pillow")
(version "9.0.0") (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
"0gjry0yqryd2678sm47jhdnbghzxn5wk8pgyaqwr4qi7x5ijjvpf")) "0gjry0yqryd2678sm47jhdnbghzxn5wk8pgyaqwr4qi7x5ijjvpf"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet '(begin
'(begin
(delete-file-recursively "src/thirdparty"))))) (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)) (inputs (list freetype
(inputs
(list freetype
lcms lcms
libjpeg-turbo libjpeg-turbo
libtiff libtiff
libwebp libwebp
openjpeg openjpeg
zlib)) zlib))
(propagated-inputs (propagated-inputs (list python-olefile))
(list python-olefile))
(arguments (arguments
`(#:phases `(#:phases (modify-phases %standard-phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-ldconfig (add-after 'unpack 'patch-ldconfig
(lambda _ (lambda _
(substitute* "setup.py" (substitute* "setup.py"
@ -6842,8 +6836,8 @@ (define-public python-pillow
(replace 'check (replace 'check
(lambda* (#:key outputs inputs tests? #:allow-other-keys) (lambda* (#:key outputs inputs tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "HOME" (getcwd)) (setenv "HOME"
;; Make installed package available for running the tests. (getcwd))
(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")))))))
@ -6856,8 +6850,7 @@ (define-public python-pillow
capabilities. The core image library is designed for fast access to data capabilities. The core image library is designed for fast access to data
stored in a few basic pixel formats. It should provide a solid foundation for stored in a few basic pixel formats. It should provide a solid foundation for
a general image processing tool.") a general image processing tool.")
(properties `((python2-variant . ,(delay python2-pillow)) (properties `((cpe-name . "pillow")))
(cpe-name . "pillow")))
(license (license:x11-style (license (license:x11-style
"http://www.pythonware.com/products/pil/license.htm" "http://www.pythonware.com/products/pil/license.htm"
"The PIL Software License")))) "The PIL Software License"))))