gnu: python-pillow: Make check phase conditional.
* gnu/packages/python-xyz.scm (python-pillow)[arguments]: Wrap custom 'check phase in check for 'tests?'.master
parent
61b77ff307
commit
979d8464d4
|
@ -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)
|
||||||
|
(if tests?
|
||||||
(begin
|
(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
|
||||||
|
|
Reference in New Issue