gnu: Add python2-pgpdump.
authorng0 <ng0@infotropique.org>
Sat, 21 Oct 2017 23:41:26 +0000 (23:41 +0000)
committerLudovic Courtès <ludo@gnu.org>
Thu, 26 Oct 2017 05:25:57 +0000 (22:25 -0700)
* gnu/packages/gnupg.scm (python2-pgpdump): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/gnupg.scm

index 326b2b9..48e15e2 100644 (file)
@@ -978,3 +978,34 @@ keyring content.  Parcimonie is a daemon that fetches one key at a time using
 the Tor network, waits a bit, changes the Tor circuit being used, and starts
 over.")
     (license license:gpl1+)))
+
+(define-public python2-pgpdump
+  (package
+    (name "python2-pgpdump")
+    (version "1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pgpdump" version))
+       (sha256
+        (base32
+         "0s4nh8h7qsdj2yf29bspjs1zvxd4lcd11r6g11dp7fppgf2h0iqw"))))
+    (build-system python-build-system)
+
+    ;; Currently fails to build with Python 3.
+    (arguments `(#:python ,python-2))
+
+    (home-page "https://github.com/toofishes/python-pgpdump")
+    (synopsis "Python library for parsing PGP packets")
+    (description
+     "Python-pgpdump is an OpenPGP packet parser based on
+@uref{http://www.mew.org/~kazu/proj/pgpdump/, pgpdump}.  It notably supports:
+
+@itemize
+@item signature packets;
+@item public key packets;
+@item secret key packets;
+@item trust, user ID, and user attribute packets;
+@item ASCII-armor decoding and CRC check.
+@end itemize\n")
+    (license license:bsd-3)))