diff options
author | John Kehayias <john.kehayias@protonmail.com> | 2025-06-17 11:02:45 -0400 |
---|---|---|
committer | John Kehayias <john.kehayias@protonmail.com> | 2025-06-23 16:55:07 -0400 |
commit | 14fb6ad4bfec28682f6b174f907d8512764a6bb3 (patch) | |
tree | 4a54fe5d947d731e5400b6804ebf137c1fe19a23 | |
parent | c16785a11e2c9f7c144d4de222f1df14ceaa86ab (diff) |
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
-rw-r--r-- | gnu/packages/password-utils.scm | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 2f2e7a8a18..bf31046550 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -40,7 +40,7 @@ ;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr> ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com> ;;; 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. ;;; @@ -1443,7 +1443,7 @@ program.") (define-public pass-git-helper (package (name "pass-git-helper") - (version "1.1.0") + (version "3.3.0") (source (origin (method git-fetch) @@ -1453,8 +1453,8 @@ program.") (file-name (git-file-name name version)) (sha256 (base32 - "18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd")))) - (build-system python-build-system) + "0nih6wxbpnasngdkbyh9df8wrm4b5inca8mshkqpmraqqmckzrk3")))) + (build-system pyproject-build-system) (arguments `(#:phases (modify-phases %standard-phases @@ -1464,16 +1464,18 @@ program.") (pass (string-append password-store "/bin/pass"))) (substitute* '("passgithelper.py" "test_passgithelper.py") - (("'pass'") (string-append "'" pass "'"))) - #t))) - (replace 'check + (("'pass'") (string-append "'" pass "'")))))) + (add-before 'check 'set-home (lambda _ - (setenv "HOME" (getcwd)) - (invoke "pytest")))))) + (setenv "HOME" (getcwd))))))) (inputs (list python-pyxdg password-store)) (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") (synopsis "Git credential helper interfacing with pass") (description "pass-git-helper is a git credential helper which |