From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aMJTO7p8GV9rNgAA0tVLHw (envelope-from ) for ; Thu, 23 Jul 2020 12:04:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8FUtN7p8GV/NIwAA1q6Kng (envelope-from ) for ; Thu, 23 Jul 2020 12:04:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 490789403A5 for ; Thu, 23 Jul 2020 12:04:09 +0000 (UTC) Received: from localhost ([::1]:36982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyZxI-00058Q-7J for larch@yhetil.org; Thu, 23 Jul 2020 08:04:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyZxD-000575-Dv for guix-patches@gnu.org; Thu, 23 Jul 2020 08:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyZxD-00073B-5U for guix-patches@gnu.org; Thu, 23 Jul 2020 08:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyZxD-000593-1c for guix-patches@gnu.org; Thu, 23 Jul 2020 08:04:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42404] [PATCH 4/5] gnu: Add python-pgpy. Resent-From: Justus Winter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jul 2020 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42404 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42404@debbugs.gnu.org Cc: Justus Winter Received: via spool by 42404-submit@debbugs.gnu.org id=B42404.159550581119701 (code B ref 42404); Thu, 23 Jul 2020 12:04:02 +0000 Received: (at 42404) by debbugs.gnu.org; 23 Jul 2020 12:03:31 +0000 Received: from localhost ([127.0.0.1]:44271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyZwh-00057c-8n for submit@debbugs.gnu.org; Thu, 23 Jul 2020 08:03:31 -0400 Received: from avior.uberspace.de ([185.26.156.32]:50382 ident=A57cOy9bCt9) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyZwe-000576-HH for 42404@debbugs.gnu.org; Thu, 23 Jul 2020 08:03:29 -0400 Received: (qmail 10793 invoked from network); 23 Jul 2020 12:03:26 -0000 Received: from localhost (HELO europa) (127.0.0.1) by avior.uberspace.de with SMTP; 23 Jul 2020 12:03:26 -0000 Received: from teythoon by europa with local (Exim 4.92) (envelope-from ) id 1jyZwb-0002CC-Fz; Thu, 23 Jul 2020 14:03:25 +0200 From: Justus Winter Date: Thu, 23 Jul 2020 14:03:21 +0200 Message-Id: <20200723120322.8385-4-justus@sequoia-pgp.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200723120322.8385-1-justus@sequoia-pgp.org> References: <20200723120322.8385-1-justus@sequoia-pgp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: EZcIDQrpPdCB * gnu/packages/python-crypto.scm (python-pgpy): New variable. --- gnu/packages/python-crypto.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 97f5903840..7ea86d1f7b 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2019 Guillaume Le Vaillant ;;; Copyright © 2019 Clément Lassieur ;;; Copyright © 2020 Alexandros Theodotou +;;; Copyright © 2020 Justus Winter ;;; ;;; This file is part of GNU Guix. ;;; @@ -1446,3 +1447,30 @@ can decide how long it takes to hash a password and how much memory is required. data such as API keys, cryptocurrency wallets, or seeds for digital signatures.") (license (list license:expat license:asl2.0)))) ; dual licensed + +(define-public python-pgpy + (package + (name "python-pgpy") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PGPy" version)) + (sha256 + (base32 + "0i4lqhzdwkjkim3wab0kqadx28z3r5ixlh6qxj4lif4gif56c0m7")))) + (build-system python-build-system) + (native-inputs + `(("python-cryptography" ,python-cryptography) + ("python-pyasn1" ,python-pyasn1) + ("python-singledispatch" ,python-singledispatch) + ("python-six" ,python-six))) + (home-page "https://github.com/SecurityInnovation/PGPy") + (synopsis "Python implementation of OpenPGP") + (description + "Currently, PGPy can load keys and signatures of all kinds in both ASCII +armored and binary formats. + +It can create and verify RSA, DSA, and ECDSA signatures, at the moment. It +can also encrypt and decrypt messages using RSA and ECDH.") + (license license:bsd-3))) -- 2.20.1