gnu: python-docopt: Honor #:tests? in check phase.

* gnu/packages/python-xyz.scm (python-docopt)[arguments]: In custom
'check phase honor #:tests?.
This commit is contained in:
Efraim Flashner 2021-08-09 10:02:02 +03:00
parent 23b9dadc1d
commit d418784dbd
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -11572,7 +11572,9 @@ automatically detect a wide range of file encodings.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "py.test"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "py.test")))))))
(home-page "http://docopt.org")
(synopsis "Command-line interface description language for Python")
(description "This library allows the user to define a command-line