[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/12: gnu: python-pysam: Make the check phase honor the tests? argument
From: |
guix-commits |
Subject: |
04/12: gnu: python-pysam: Make the check phase honor the tests? argument. |
Date: |
Thu, 22 Jul 2021 04:51:56 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit fd8aea010fee199b803c5613ff80212b009cb0d4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jul 22 10:58:22 2021 +0300
gnu: python-pysam: Make the check phase honor the tests? argument.
* gnu/packages/bioinformatics.scm (python-pysam)[arguments]: Adjust
custom 'check phase to skip tests when #:tests is #f.
---
gnu/packages/bioinformatics.scm | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index d324424..a90a7fa 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2107,7 +2107,7 @@ has several key features:
(setenv "CFLAGS" "-D_CURSES_LIB=1")
#t))
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
+ (lambda* (#:key tests? #:allow-other-keys)
;; Failing test removed in the next release.
(delete-file "tests/AlignmentFile_test.py")
;; Add first subdirectory of "build" directory to PYTHONPATH.
@@ -2117,20 +2117,21 @@ has several key features:
":" (getcwd) "/build/"
(car (scandir "build"
(negate (cut string-prefix? "." <>))))))
- ;; Step out of source dir so python does not import from CWD.
- (with-directory-excursion "tests"
- (setenv "HOME" "/tmp")
- (invoke "make" "-C" "pysam_data")
- (invoke "make" "-C" "cbcf_data")
- (invoke "pytest" "-k"
- (string-append
- ;; requires network access.
- "not FileHTTP"
- ;; bug in test suite with samtools update
- ;;
https://github.com/pysam-developers/pysam/issues/961
- " and not TestHeaderBAM"
- " and not TestHeaderCRAM"
- " and not test_text_processing"))))))))
+ (when tests?
+ ;; Step out of source dir so python does not import from CWD.
+ (with-directory-excursion "tests"
+ (setenv "HOME" "/tmp")
+ (invoke "make" "-C" "pysam_data")
+ (invoke "make" "-C" "cbcf_data")
+ (invoke "pytest" "-k"
+ (string-append
+ ;; requires network access.
+ "not FileHTTP"
+ ;; bug in test suite with samtools update
+ ;;
https://github.com/pysam-developers/pysam/issues/961
+ " and not TestHeaderBAM"
+ " and not TestHeaderCRAM"
+ " and not test_text_processing")))))))))
(propagated-inputs
`(("htslib" ,htslib-1.10))) ; Included from installed header files.
(inputs
- 05/12: gnu: python-abjad: Rename to abjad., (continued)
- 05/12: gnu: python-abjad: Rename to abjad., guix-commits, 2021/07/22
- 11/12: gnu: Add abjad-ext-nauert., guix-commits, 2021/07/22
- 08/12: gnu: abjad: Move lilypond to inputs., guix-commits, 2021/07/22
- 12/12: gnu: Add abjad-ext-ipython., guix-commits, 2021/07/22
- 01/12: gnu: python-biopython: Update to 1.73., guix-commits, 2021/07/22
- 02/12: gnu: Add htslib-1.10., guix-commits, 2021/07/22
- 03/12: gnu: python-pysam: Update to 0.16.0.1., guix-commits, 2021/07/22
- 10/12: gnu: Add abjad-ext-rmakers., guix-commits, 2021/07/22
- 09/12: gnu: abjad: Remove obsolete phase., guix-commits, 2021/07/22
- 07/12: gnu: abjad: Improve description., guix-commits, 2021/07/22
- 04/12: gnu: python-pysam: Make the check phase honor the tests? argument.,
guix-commits <=
- 06/12: gnu: abjad: Move python-ply to propagated-inputs., guix-commits, 2021/07/22