From 089b2e4f65fd4ca70e5a089e97e75e825b56efb1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 2 Dec 2022 19:31:59 +0100 Subject: gnu: python-pairtools: Run tests conditionally. * gnu/packages/bioinformatics.scm (python-pairtools)[arguments]: Run tests conditionally. --- gnu/packages/bioinformatics.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu') 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 -- cgit v1.2.3