mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 23:36:35 +01:00
gnu: python-gnupg: Honor #:tests? flag.
* gnu/packages/gnupg.scm (python-gnupg)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
parent
69c7dd8090
commit
e9d0ebe446
1 changed files with 11 additions and 10 deletions
|
@ -583,16 +583,17 @@ (define-public python-gnupg
|
|||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(substitute* "test_gnupg.py"
|
||||
;; Unsure why this test fails.
|
||||
(("'test_search_keys'") "True")
|
||||
(("def test_search_keys") "def disabled__search_keys"))
|
||||
(setenv "USERNAME" "guixbuilder")
|
||||
;; The doctests are extremely slow and sometimes time out,
|
||||
;; so we disable them.
|
||||
(invoke "python"
|
||||
"test_gnupg.py" "--no-doctests"))))))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(substitute* "test_gnupg.py"
|
||||
;; Unsure why this test fails.
|
||||
(("'test_search_keys'") "True")
|
||||
(("def test_search_keys") "def disabled__search_keys"))
|
||||
(setenv "USERNAME" "guixbuilder")
|
||||
;; The doctests are extremely slow and sometimes time out,
|
||||
;; so we disable them.
|
||||
(invoke "python"
|
||||
"test_gnupg.py" "--no-doctests")))))))
|
||||
(native-inputs
|
||||
`(("gnupg" ,gnupg)))
|
||||
(home-page "https://pythonhosted.org/python-gnupg/index.html")
|
||||
|
|
Loading…
Reference in a new issue