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"))) (("/bin/bash") (which "bash")))
#t)) #t))
(replace 'check (replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(add-installed-pythonpath inputs outputs) (when tests?
(with-directory-excursion "/tmp" (with-directory-excursion "/tmp"
(invoke "pytest" "-v"))))))) (invoke "pytest" "-v"))))))))
(native-inputs (native-inputs
(list python-cython python-nose python-pytest)) (list python-cython python-nose python-pytest))
(inputs (inputs