3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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,45 +6808,39 @@ retrieve text and metadata from PDFs as well as merge entire files together.")
(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 '(begin
(snippet (delete-file-recursively "src/thirdparty")))))
'(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)) (inputs (list freetype
(inputs lcms
(list freetype libjpeg-turbo
lcms libtiff
libjpeg-turbo libwebp
libtiff openjpeg
libwebp zlib))
openjpeg (propagated-inputs (list python-olefile))
zlib))
(propagated-inputs
(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" (("\\['/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) (when tests?
(when tests? (setenv "HOME"
(setenv "HOME" (getcwd)) (getcwd))
;; 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")))))))
(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
@ -6856,8 +6850,7 @@ efficient internal representation, and fairly powerful image processing
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"))))