gnu: toot: Honor the #:tests? flag.

* gnu/packages/mastodon.scm (toot)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2021-11-26 15:52:57 +02:00
parent ac4c0b1933
commit 3d6040c135
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -52,9 +52,10 @@ (define-public toot
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "py.test"))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "py.test")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(inputs