gnu: python-pillow: Update to 5.4.0

* gnu/packages/python.scm (python-pillow): Update to 5.4.0.
[arguments]: Add 'patch-ldconfig' phase.
This commit is contained in:
Kei Kebreau 2019-01-06 00:50:55 -05:00
parent 146c6b62bf
commit acbf312573
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 18 additions and 15 deletions

View File

@ -4075,17 +4075,17 @@ the OleFileIO module from PIL, the Python Image Library.")
(define-public python-pillow (define-public python-pillow
(package (package
(name "python-pillow") (name "python-pillow")
(version "5.2.0") (version "5.4.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
"1ary9mj2ddllq3lkxgn6aac7qxqiwbcg2pacrl94py58ql9x9czq")))) "0qrkcjszym7ixffg5zphhp8a07w8w11yyc2ylcbdrhwm771z316m"))))
(build-system python-build-system) (build-system python-build-system)
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))
(inputs (inputs
`(("freetype" ,freetype) `(("freetype" ,freetype)
("lcms" ,lcms) ("lcms" ,lcms)
@ -4097,18 +4097,21 @@ the OleFileIO module from PIL, the Python Image Library.")
(propagated-inputs (propagated-inputs
`(("python-olefile" ,python-olefile))) `(("python-olefile" ,python-olefile)))
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases
(add-after (modify-phases %standard-phases
'install 'check-installed (add-after 'unpack 'patch-ldconfig
(lambda* (#:key outputs inputs #:allow-other-keys) (lambda _
(begin (substitute* "setup.py"
(setenv "HOME" (getcwd)) (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
;; Make installed package available for running the (delete 'check) ; We must run checks after python-pillow is installed.
;; tests (add-after 'install 'check-installed
(add-installed-pythonpath inputs outputs) (lambda* (#:key outputs inputs #:allow-other-keys)
(invoke "python" "selftest.py" "--installed") (begin
(invoke "python" "-m" "pytest" "-vv")))) (setenv "HOME" (getcwd))
(delete 'check)))) ;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs)
(invoke "python" "selftest.py" "--installed")
(invoke "python" "-m" "pytest" "-vv")))))))
(home-page "https://pypi.python.org/pypi/Pillow") (home-page "https://pypi.python.org/pypi/Pillow")
(synopsis "Fork of the Python Imaging Library") (synopsis "Fork of the Python Imaging Library")
(description (description