From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP6qh-0001WJ-KG for guix-patches@gnu.org; Sun, 25 Jun 2017 08:41:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP6qc-000263-Ka for guix-patches@gnu.org; Sun, 25 Jun 2017 08:41:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dP6qc-00025p-Gp for guix-patches@gnu.org; Sun, 25 Jun 2017 08:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dP6qc-0004Tq-6C for guix-patches@gnu.org; Sun, 25 Jun 2017 08:41:02 -0400 Subject: [bug#27483] [PATCH] gnu: Add python-pass-git-helper. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dP6pt-0001UK-Hg for guix-patches@gnu.org; Sun, 25 Jun 2017 08:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dP6po-0001qj-FC for guix-patches@gnu.org; Sun, 25 Jun 2017 08:40:17 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:33550) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dP6po-0001oV-9p for guix-patches@gnu.org; Sun, 25 Jun 2017 08:40:12 -0400 Received: by mail-wr0-f173.google.com with SMTP id r103so119508263wrb.0 for ; Sun, 25 Jun 2017 05:40:10 -0700 (PDT) From: Jelle Licht Date: Sun, 25 Jun 2017 14:39:47 +0200 Message-Id: <20170625123947.5031-1-jlicht@fsfe.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27483@debbugs.gnu.org * gnu/packages/password-utils.scm (python-pass-git-helper): New variable. --- gnu/packages/password-utils.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 9cfacdb42..55b6e2a04 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages aidc) #:use-module (gnu packages base) #:use-module (gnu packages compression) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) @@ -410,3 +411,38 @@ Password Scheme\"} by Niels Provos and David Mazieres.") (define-public python2-bcrypt (package-with-python2 python-bcrypt)) + +(define-public python-pass-git-helper + (package + (name "python-pass-git-helper") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pass-git-helper" version)) + (sha256 + (base32 + "1zxzwljz8zqayd6dcai6y9qkj2ingbk89z20hqqvcr62a5bjks7v")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'patch-pass-path + (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" + (("'pass'") (string-append "'" pass "'"))) + #t)))))) + (inputs + `(("python-pyxdg" ,python-pyxdg) + ("password-store" ,password-store))) + (home-page "https://github.com/languitar/pass-git-helper") + (synopsis "Git credential helper interfacing with pass") + (description + "A git credential helper implementation which allows to use pass, the +standard unix password manager, as the credential backend for your git +repositories. This is achieved by explicitly defining mappings between hosts +and entries in the password store.") + (license license:lgpl3))) -- 2.13.1