From patchwork Wed Sep 14 06:48:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 42619 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8B1F227BBEA; Wed, 14 Sep 2022 07:49:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CDC9B27BBE9 for ; Wed, 14 Sep 2022 07:49:13 +0100 (BST) Received: from localhost ([::1]:40504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYMCv-0003yi-0D for patchwork@mira.cbaines.net; Wed, 14 Sep 2022 02:49:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYMCk-0003yL-Ev for guix-patches@gnu.org; Wed, 14 Sep 2022 02:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYMCk-0007Zl-1R for guix-patches@gnu.org; Wed, 14 Sep 2022 02:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYMCj-0003Mg-T4 for guix-patches@gnu.org; Wed, 14 Sep 2022 02:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57794] [PATCH 1/1] gnu: Add cpass. References: <20220914064724.2589-1-paren@disroot.org> In-Reply-To: <20220914064724.2589-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Sep 2022 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57794@debbugs.gnu.org Cc: "\(" Received: via spool by 57794-submit@debbugs.gnu.org id=B57794.166313811912903 (code B ref 57794); Wed, 14 Sep 2022 06:49:01 +0000 Received: (at 57794) by debbugs.gnu.org; 14 Sep 2022 06:48:39 +0000 Received: from localhost ([127.0.0.1]:53505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYMCM-0003M3-Rp for submit@debbugs.gnu.org; Wed, 14 Sep 2022 02:48:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYMCK-0003Lt-EU for 57794@debbugs.gnu.org; Wed, 14 Sep 2022 02:48:37 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C3DF249FEB; Wed, 14 Sep 2022 08:48:35 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2roPJaz90k7I; Wed, 14 Sep 2022 08:48:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663138114; bh=lmCON3rjpIcXaxPvGpWY1HC4xX0ZntNd/u+tsiLfPFU=; h=From:To:Cc:Subject:Date; b=UqsMnHIPl4K3v1/gGT3ksDHc7jJirFMyacUCgLD51nSMYz86+fDb1LbwgILT8YDes mGtWUIkl9Es1DB8ofIayjyGli5TASMGMs65JnmnRdYZ2EYAwapurxWPcnlZhCrY7ea jfMzQ56RkkjrsnTubeANBLmVXpNsxv/wABfuGT61pZb14BSzxxak2CGJF3Z4I2WUSz RXkA7a/f4gj9++2nueWiQi4R2aTPl1akjyh7yXbRKJT/1FrzuG+sO2ij9xGEBYgJyV XZy7bFJh19qERJtYpmkc7er6lOLjsbcOFO7CXqIqa0EJYQb8vbSUvEHfRcjTlieUBu Z2hmBuvRsvwXQ== Date: Wed, 14 Sep 2022 07:48:32 +0100 Message-Id: <20220914064832.2688-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/password-utils.scm (cpass): New variable. --- gnu/packages/password-utils.scm | 38 +++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 003e346305..bcc1d9421d 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2021 David Dashyan ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Maxime Devos +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -58,6 +59,7 @@ (define-module (gnu packages password-utils) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system go) + #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix gexp) @@ -109,8 +111,7 @@ (define-module (gnu packages password-utils) #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) - #:use-module (gnu packages xml) - #:use-module (guix build-system python)) + #:use-module (gnu packages xml)) (define-public pwgen (package @@ -1315,3 +1316,36 @@ (define-public pass-tomb therefore you don't need to manage more key or secret. Moreover, you can ask pass-tomb to automatically close your store after a given time.") (license license:gpl3+))) + +(define-public cpass + (package + (name "cpass") + (version "0.9.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "cpass" version)) + (sha256 + (base32 + "1zp3a8mgqxn916fzj1v2yhgnl7v6s0vnd0qcghqs3qq648qmlwr5")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-pass-refs + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "cpass.py" + (("'pass'") + (string-append "'" + (search-input-file inputs + "bin/pass") + "'")) + (("\\.password_store") + ".password-store"))))))) + (inputs (list password-store)) + (propagated-inputs (list python-urwid)) + (home-page "https://github.com/OliverLew/cpass") + (synopsis "Textual interface for @command{pass}") + (description + "@command{cpass} is a terminal user interface for @command{pass}. +It supports both vim-like keybindings and the mouse.") + (license license:expat)))