me
/
guix
Archived
1
0
Fork 0

gnu: python-pillow: Make check phase conditional.

* gnu/packages/python-xyz.scm (python-pillow)[arguments]: Wrap custom
'check phase in check for 'tests?'.
master
Efraim Flashner 2019-12-02 11:02:47 +02:00
parent 61b77ff307
commit 979d8464d4
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 9 additions and 7 deletions

View File

@ -4706,13 +4706,15 @@ the OleFileIO module from PIL, the Python Image Library.")
(substitute* "setup.py" (substitute* "setup.py"
(("\\['/sbin/ldconfig', '-p'\\]") "['true']")))) (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
(replace 'check (replace 'check
(lambda* (#:key outputs inputs #:allow-other-keys) (lambda* (#:key outputs inputs tests? #:allow-other-keys)
(begin (if tests?
(setenv "HOME" (getcwd)) (begin
;; Make installed package available for running the tests. (setenv "HOME" (getcwd))
(add-installed-pythonpath inputs outputs) ;; Make installed package available for running the tests.
(invoke "python" "selftest.py" "--installed") (add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-vv"))))))) (invoke "python" "selftest.py" "--installed")
(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