me
/
guix
Archived
1
0
Fork 0

gnu: python-s3transfer: Honor #:tests? flag.

* gnu/packages/python-web.scm (python-s3transfer)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Vinicius Monego 2021-11-05 01:58:33 +00:00 committed by Ludovic Courtès
parent 32135392dd
commit 9660c2f158
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 4 deletions

View File

@ -3426,10 +3426,11 @@ Betamax that may possibly end up in the main package.")
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some of the 'integration' tests require network access or ;; Some of the 'integration' tests require network access or
;; login credentials. ;; login credentials.
(invoke "nosetests" "--exclude=integration")))))) (invoke "nosetests" "--exclude=integration")))))))
(native-inputs (native-inputs
`(("python-docutils" ,python-docutils) `(("python-docutils" ,python-docutils)
("python-mock" ,python-mock) ("python-mock" ,python-mock)