summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-12-02 19:31:59 +0100
committerRicardo Wurmus <rekado@elephly.net>2022-12-02 21:46:36 +0100
commit089b2e4f65fd4ca70e5a089e97e75e825b56efb1 (patch)
tree59c703a85604fc9670b7ade8070795a2e7aa2048 /gnu
parent631ea9a411b36214813851fecab9ab919f30c5f1 (diff)
downloadguix-089b2e4f65fd4ca70e5a089e97e75e825b56efb1.tar.gz
gnu: python-pairtools: Run tests conditionally.
* gnu/packages/bioinformatics.scm (python-pairtools)[arguments]: Run tests
conditionally.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bioinformatics.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index d9da6f690d..560c685d02 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -1116,10 +1116,10 @@ e.g. microbiome samples, genomes, metagenomes.")
                (("/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