mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: python-attrs: Conditionally execute tests.
* gnu/packages/python-xyz.scm (python-attrs)[arguments]: Wrap "check" phase in conditional expression.
This commit is contained in:
parent
a8c653f0fc
commit
12964df69a
1 changed files with 14 additions and 12 deletions
|
@ -16991,9 +16991,11 @@ (define-public python-attrs
|
|||
(ice-9 ftw)
|
||||
(srfi srfi-1)
|
||||
(srfi srfi-26))
|
||||
#:phases (modify-phases %standard-phases
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(let ((cwd (getcwd)))
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append
|
||||
|
@ -17002,7 +17004,7 @@ (define-public python-attrs
|
|||
(scandir (string-append cwd "/build")))
|
||||
":"
|
||||
(getenv "PYTHONPATH")))
|
||||
(invoke "python" "-m" "pytest")))))))
|
||||
(invoke "python" "-m" "pytest"))))))))
|
||||
(native-inputs
|
||||
`(("python-coverage" ,python-coverage)
|
||||
("python-hypothesis" ,python-hypothesis)
|
||||
|
|
Loading…
Reference in a new issue