mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 21:19:18 -05:00
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
1 changed files with 4 additions and 3 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue