gnu: pass-git-helper: Run test suite.

* gnu/packages/password-utils.scm (pass-git-helper)[arguments]: Adjust
custom 'patch-pass-path phase. Use custom 'check phase.
This commit is contained in:
Efraim Flashner 2020-01-22 12:39:18 +02:00
parent b70f9ad165
commit 54bcc27fb5
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -768,13 +768,14 @@ (define-public pass-git-helper
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let* ((password-store (assoc-ref inputs "password-store")) (let* ((password-store (assoc-ref inputs "password-store"))
(pass (string-append password-store "/bin/pass"))) (pass (string-append password-store "/bin/pass")))
(substitute* "passgithelper.py" (substitute* '("passgithelper.py"
"test_passgithelper.py")
(("'pass'") (string-append "'" pass "'"))) (("'pass'") (string-append "'" pass "'")))
#t))) #t)))
(add-before 'check 'pre-check (replace 'check
(lambda _ (lambda _
(setenv "HOME" (getcwd)) (setenv "HOME" (getcwd))
#t))))) (invoke "pytest"))))))
(inputs (inputs
`(("python-pyxdg" ,python-pyxdg) `(("python-pyxdg" ,python-pyxdg)
("password-store" ,password-store))) ("password-store" ,password-store)))