gnu: pass-git-helper: Update to 3.3.0.

* gnu/packages/password-utils.scm (pass-git-helper): Update to 3.3.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#phases>: Don't replace check phase but make a pre-check phase to
just to set HOME.
[native-inputs]: Add python-pytest-cov, python-setuptools, and python-wheel.

Change-Id: I2d06c647b6edd7ec83d611b398ca3faa6a22480c
This commit is contained in:
John Kehayias 2025-06-17 11:02:45 -04:00
parent c16785a11e
commit 14fb6ad4bf
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -40,7 +40,7 @@
;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr> ;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com> ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2023 Christian Miller <christian.miller@dadoes.de> ;;; Copyright © 2023 Christian Miller <christian.miller@dadoes.de>
;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com> ;;; Copyright © 2024, 2025 John Kehayias <john.kehayias@protonmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -1443,7 +1443,7 @@ program.")
(define-public pass-git-helper (define-public pass-git-helper
(package (package
(name "pass-git-helper") (name "pass-git-helper")
(version "1.1.0") (version "3.3.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -1453,8 +1453,8 @@ program.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd")))) "0nih6wxbpnasngdkbyh9df8wrm4b5inca8mshkqpmraqqmckzrk3"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -1464,16 +1464,18 @@ program.")
(pass (string-append password-store "/bin/pass"))) (pass (string-append password-store "/bin/pass")))
(substitute* '("passgithelper.py" (substitute* '("passgithelper.py"
"test_passgithelper.py") "test_passgithelper.py")
(("'pass'") (string-append "'" pass "'"))) (("'pass'") (string-append "'" pass "'"))))))
#t))) (add-before 'check 'set-home
(replace 'check
(lambda _ (lambda _
(setenv "HOME" (getcwd)) (setenv "HOME" (getcwd)))))))
(invoke "pytest"))))))
(inputs (inputs
(list python-pyxdg password-store)) (list python-pyxdg password-store))
(native-inputs (native-inputs
(list python-pytest python-pytest-mock)) (list python-pytest
python-pytest-cov
python-pytest-mock
python-setuptools
python-wheel))
(home-page "https://github.com/languitar/pass-git-helper") (home-page "https://github.com/languitar/pass-git-helper")
(synopsis "Git credential helper interfacing with pass") (synopsis "Git credential helper interfacing with pass")
(description "pass-git-helper is a git credential helper which (description "pass-git-helper is a git credential helper which