From 6a29b83423bd36c0d82a5511395323f8c4e15a99 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Aug 2021 20:09:08 +0300 Subject: gnu: python-identify: Honor #:tests in check phase. * gnu/packages/python-xyz.scm (python-identify)[arguments]: Honor tests?. --- gnu/packages/python-xyz.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b160996756..5223f5a73e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20751,8 +20751,9 @@ (define-public python-identify ;; system-error "utime" "~A" ("No such file or directory") (delete 'ensure-no-mtimes-pre-1980) (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (native-inputs `(("python-coverage" ,python-coverage) ("python-pytest" ,python-pytest))) -- cgit v1.2.3