diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 989d27a2e0..2716997049 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -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)))