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:
Efraim Flashner 2022-08-24 21:30:48 +03:00
parent 54da48e2ce
commit 4275727ac5
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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))