mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: python-pillow: Make check phase conditional.
* gnu/packages/python-xyz.scm (python-pillow)[arguments]: Wrap custom 'check phase in check for 'tests?'.
This commit is contained in:
parent
61b77ff307
commit
979d8464d4
1 changed files with 9 additions and 7 deletions
|
@ -4706,13 +4706,15 @@ (define-public python-pillow
|
|||
(substitute* "setup.py"
|
||||
(("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||
(begin
|
||||
(setenv "HOME" (getcwd))
|
||||
;; Make installed package available for running the tests.
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "python" "selftest.py" "--installed")
|
||||
(invoke "python" "-m" "pytest" "-vv")))))))
|
||||
(lambda* (#:key outputs inputs tests? #:allow-other-keys)
|
||||
(if tests?
|
||||
(begin
|
||||
(setenv "HOME" (getcwd))
|
||||
;; Make installed package available for running the tests.
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "python" "selftest.py" "--installed")
|
||||
(invoke "python" "-m" "pytest" "-vv"))
|
||||
#t))))))
|
||||
(home-page "https://python-pillow.org")
|
||||
(synopsis "Fork of the Python Imaging Library")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue