mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-21 01:26:43 +01:00
gnu: python-natsort: Honor the #:tests? flag.
* gnu/packages/python-xyz.scm (python-natsort)[arguments]: Adjust the custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
54da48e2ce
commit
4275727ac5
1 changed files with 3 additions and 2 deletions
|
@ -18195,8 +18195,9 @@ (define-public python-natsort
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "pytest" "-v"))))))
|
(when tests?
|
||||||
|
(invoke "pytest" "-v")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-hypothesis python-pytest-cov python-pytest-mock
|
(list python-hypothesis python-pytest-cov python-pytest-mock
|
||||||
python-pytest))
|
python-pytest))
|
||||||
|
|
Loading…
Reference in a new issue