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:
parent
b70f9ad165
commit
54bcc27fb5
@ -768,13 +768,14 @@ winner of the 2015 Password Hashing Competition.")
|
|||||||
(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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user