Subject: [bug#31173] [PATCH] gnu: Add python-onetimepass.

From: Tomáš Čech <[email-masked]>
Date: Mon, 16 Apr 2018 11:05:52 +0200

* gnu/packages/python.scm (python-onetimepass): New variable.
---
 gnu/packages/python.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e5b74a57f..aedd30566 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <[email-masked]>
 ;;; Copyright © 2018 Mathieu Lirzin <[email-masked]>
 ;;; Copyright © 2018 Adam Massmann <[email-masked]>
+;;; Copyright © 2016, 2018 Tomáš Čech <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -13127,3 +13128,23 @@ file system events on Linux.")
     (description "Pybtex is a BibTeX-compatible bibliography processor written
 in Python.  You can simply type pybtex instead of bibtex.")
     (license license:expat)))
+
+(define-public python-onetimepass
+  (package
+    (name "python-onetimepass")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "onetimepass" version))
+       (sha256
+        (base32
+         "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
+    (build-system python-build-system)
+    (inputs
+       `(("python-six" ,python-six)))
+    (home-page "https://github.com/tadeck/onetimepass/")
+    (synopsis "Python one-time password library")
+    (description "Pyhton one-time password library for HMAC-based (HOTP) and
+time-based (TOTP) passwords.")
+    (license license:x11)))
-- 
2.16.3