gnu: python-gnupg: Fix broken tests.

* gnu/packages/gnupg.scm (python-gnupg)[arguments]: Fix check phase.
This commit is contained in:
Ricardo Wurmus 2016-08-26 23:47:42 +02:00
parent feb995c4c9
commit ec0897638e
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 13 additions and 14 deletions

View File

@ -5,6 +5,7 @@
;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
;;; Copyright © 2016 Nils Gillmann <ng0@libertad.pw> ;;; Copyright © 2016 Nils Gillmann <ng0@libertad.pw>
;;; ;;;
@ -447,15 +448,13 @@ 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* (#:key inputs #:allow-other-keys) (lambda _
(substitute* "test_gnupg.py" (substitute* "test_gnupg.py"
;; Test keyrings are missing, so this test fails. ;; Exported keys don't have a version line!
(("'test_scan_keys'") "True") (("del k1\\[1\\]") "#")
(("def test_scan_keys") "def disabled__scan_keys")
;; Unsure why this test fails. ;; Unsure why this test fails.
(("'test_search_keys'") "True") (("'test_search_keys'") "True")
(("def test_search_keys") "def disabled__search_keys")) (("def test_search_keys") "def disabled__search_keys"))
(setenv "GPGBINARY" "gpg")
(setenv "USERNAME" "guixbuilder") (setenv "USERNAME" "guixbuilder")
;; The doctests are extremely slow and sometimes time out, ;; The doctests are extremely slow and sometimes time out,
;; so we disable them. ;; so we disable them.