mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -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)
|
||||
(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