gnu: python-pairtools: Run tests conditionally.

* gnu/packages/bioinformatics.scm (python-pairtools)[arguments]: Run tests
conditionally.
This commit is contained in:
Ricardo Wurmus 2022-12-02 19:31:59 +01:00
parent 631ea9a411
commit 089b2e4f65
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1116,10 +1116,10 @@ (define-public python-pairtools
(("/bin/bash") (which "bash")))
#t))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "/tmp"
(invoke "pytest" "-v")))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "/tmp"
(invoke "pytest" "-v"))))))))
(native-inputs
(list python-cython python-nose python-pytest))
(inputs