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 @@ decrypt messages using the OpenPGP format by making use of GPGME.")
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(substitute* "test_gnupg.py"
|
(when tests?
|
||||||
;; Unsure why this test fails.
|
(substitute* "test_gnupg.py"
|
||||||
(("'test_search_keys'") "True")
|
;; Unsure why this test fails.
|
||||||
(("def test_search_keys") "def disabled__search_keys"))
|
(("'test_search_keys'") "True")
|
||||||
(setenv "USERNAME" "guixbuilder")
|
(("def test_search_keys") "def disabled__search_keys"))
|
||||||
;; The doctests are extremely slow and sometimes time out,
|
(setenv "USERNAME" "guixbuilder")
|
||||||
;; so we disable them.
|
;; The doctests are extremely slow and sometimes time out,
|
||||||
(invoke "python"
|
;; so we disable them.
|
||||||
"test_gnupg.py" "--no-doctests"))))))
|
(invoke "python"
|
||||||
|
"test_gnupg.py" "--no-doctests")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gnupg" ,gnupg)))
|
`(("gnupg" ,gnupg)))
|
||||||
(home-page "https://pythonhosted.org/python-gnupg/index.html")
|
(home-page "https://pythonhosted.org/python-gnupg/index.html")
|
||||||
|
|
|
||||||
Reference in a new issue