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
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "pytest" "-v"))))))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-v")))))))
|
||||
(native-inputs
|
||||
(list python-hypothesis python-pytest-cov python-pytest-mock
|
||||
python-pytest))
|
||||
|
|
Loading…
Reference in a new issue