mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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 @@ JSON) codec.")
|
||||||
`(#: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…
Add table
Add a link
Reference in a new issue