guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/10: gnu: pass-git-helper: Update to 1.1.0.


From: guix-commits
Subject: 07/10: gnu: pass-git-helper: Update to 1.1.0.
Date: Wed, 22 Jan 2020 07:18:32 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit b70f9ad1654bb2e363257ff2365d56cce9f6f2e0
Author: Efraim Flashner <address@hidden>
AuthorDate: Wed Jan 22 12:28:48 2020 +0200

    gnu: pass-git-helper: Update to 1.1.0.
    
    * gnu/packages/password-utils.scm (pass-git-helper): Update to 1.1.0.
    [arguments]: Update 'patch-pass-path phase. Add 'pre-check phase.
    [native-inputs]: Add python-pytest, python-pytest-mock.
---
 gnu/packages/password-utils.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 3931e8a..989d27a 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -749,17 +749,17 @@ winner of the 2015 Password Hashing Competition.")
 (define-public pass-git-helper
   (package
     (name "pass-git-helper")
-    (version "0.3.1")
+    (version "1.1.0")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://github.com/languitar/pass-git-helper";)
-              (commit (string-append "release-" version))))
+              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0vyzmfzyr6ghaglr09px2q6k38zyv1hw25j14z7if7nncj1i4i5d"))))
+         "18nvwlp0w4aqj268wly60rnjzqw2d8jl0hbs6bkwp3hpzzz5g6yd"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
@@ -768,12 +768,19 @@ winner of the 2015 Password Hashing Competition.")
            (lambda* (#:key inputs #:allow-other-keys)
              (let* ((password-store (assoc-ref inputs "password-store"))
                     (pass (string-append password-store "/bin/pass")))
-               (substitute* "pass-git-helper"
+               (substitute* "passgithelper.py"
                  (("'pass'") (string-append "'" pass "'")))
-               #t))))))
+               #t)))
+         (add-before 'check 'pre-check
+           (lambda _
+             (setenv "HOME" (getcwd))
+             #t)))))
     (inputs
      `(("python-pyxdg" ,python-pyxdg)
        ("password-store" ,password-store)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-mock" ,python-pytest-mock)))
     (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 allows to



reply via email to

[Prev in Thread] Current Thread [Next in Thread]