From ab10e1086cf1e36330a55d05ee438b097c9fd626 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Mar 2021 16:19:19 +0200 Subject: gnu: python-jedi: Allow test phase to be skipped. * gnu/packages/python-xyz.scm (python-jedi)[arguments]: Wrap custom 'check phase tests with check for tests? keyword. --- gnu/packages/python-xyz.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d9de9bc01c..fbc9ad688d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13945,9 +13945,11 @@ characters, mouse support, and auto suggestions.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (setenv "HOME" "/tmp") - (invoke "python" "-m" "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + (invoke "python" "-m" "pytest" "-vv")) + #t))))) (native-inputs `(("python-pytest" ,python-pytest) ("python-docopt" ,python-docopt))) -- cgit 1.4.1