From 14fb6ad4bfec28682f6b174f907d8512764a6bb3 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Tue, 17 Jun 2025 11:02:45 -0400 Subject: [PATCH] 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 --- gnu/packages/password-utils.scm | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 2f2e7a8a18f..bf310465505 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -40,7 +40,7 @@ ;;; Copyright © 2022 Nicolas Graves ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2023 Christian Miller -;;; Copyright © 2024 John Kehayias +;;; Copyright © 2024, 2025 John Kehayias ;;; ;;; 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