From 8ff7e30582a6d84b6c9bf56cd985ef9c04af9eaa Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 21 Oct 2017 23:41:26 +0000 Subject: [PATCH 5/6] gnu: Add python-pgpdump. * gnu/packages/gnupg.scm (python-pgpdump): New variable. --- gnu/packages/gnupg.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index ffad57ef5..9a6ff68f8 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -850,3 +850,34 @@ them to transform your existing public key into a secret key.") @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign files, to verify signatures, and to manage the private and public keys.") (license license:gpl3+))) + +(define-public python-pgpdump + (package + (name "python-pgpdump") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pgpdump" version)) + (sha256 + (base32 + "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw")))) + (build-system python-build-system) + (home-page "https://github.com/toofishes/python-pgpdump") + (synopsis "Python library for parsing PGP packets") + (description + "Python-pgpdump is based on the pgpdump +(http://www.mew.org/~kazu/proj/pgpdump/). Currently supported things +include: + address@hidden address@hidden Signature packets address@hidden Public key packets address@hidden Secret key packets address@hidden Trust, user ID, and user attribute packets address@hidden ASCII-armor decoding and CRC check address@hidden enumerate\n") + (license license:bsd-3))) + +(define-public python2-pgpdump + (package-with-python2 python-pgpdump)) -- 2.14.2