From 757c9425ba40df98ffe9eb36973be11c13c57d6d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Oct 2021 16:29:33 +0200 Subject: gnu: python-ipykernel: Honor #:tests? flag. * gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-xyz.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5f46e52472..f534531f5c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8431,10 +8431,10 @@ (define-public python-ipykernel `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (setenv "HOME" "/tmp") - (invoke "pytest" "-v") - #t)) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (invoke "pytest" "-v")))) (add-after 'install 'set-python-file-name (lambda* (#:key outputs #:allow-other-keys) ;; Record the absolute file name of the 'python' executable in -- cgit v1.2.3