gnu: python-deprecated: Honor #:tests? flag.

* gnu/packages/python-xyz.scm (python-deprecated)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2021-10-27 20:05:15 +03:00
parent af4ce7bd41
commit a56b000745
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -4362,8 +4362,9 @@ (define-public python-deprecated
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(propagated-inputs
`(("python-wrapt" ,python-wrapt)))
(native-inputs