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 @@ (define-public pass-git-helper
|
|||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let* ((password-store (assoc-ref inputs "password-store"))
|
||||
(pass (string-append password-store "/bin/pass")))
|
||||
(substitute* "passgithelper.py"
|
||||
(substitute* '("passgithelper.py"
|
||||
"test_passgithelper.py")
|
||||
(("'pass'") (string-append "'" pass "'")))
|
||||
#t)))
|
||||
(add-before 'check 'pre-check
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(setenv "HOME" (getcwd))
|
||||
#t)))))
|
||||
(invoke "pytest"))))))
|
||||
(inputs
|
||||
`(("python-pyxdg" ,python-pyxdg)
|
||||
("password-store" ,password-store)))
|
||||
|
|
Loading…
Reference in a new issue