* gnu/packages/python.scm: add new package and update variable

Note: full package (merge commits)

--
Daniel Pimentel (aka d4n1)
From 7acca9fa8e2c67b1149c584b447270d501376fe7 Mon Sep 17 00:00:00 2001
From: Daniel Pimentel <d...@d4n1.org>
Date: Thu, 23 Jun 2016 13:02:58 -0300
Subject: [PATCH] gnu: add python2-pbkdf2 * gnu/packages/python.scm: add new
 package

---
 gnu/packages/python.scm | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4567a91..cf4ef3c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9274,9 +9274,7 @@ specified in POSIX.1-2001 and POSIX.1-2008.")
     (version "0.1.7")
     (source (origin
               (method url-fetch)
-              (uri (string-append
-                    "https://pypi.python.org/packages/source/j/jsonrpclib/";
-                    "jsonrpclib-" version ".tar.gz"))
+              (uri (pypi-uri "jsonrpclib" version))
               (sha256
                (base32
                 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
@@ -9294,3 +9292,26 @@ It supports both the original 1.0 specification, as well as the
 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
 etc.")
     (license asl2.0)))
+
+(define-public python2-pbkdf2
+  (package
+    (name "python2-pbkdf2")
+    (version "1.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pbkdf2" version))
+              (sha256
+               (base32
+                "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)))
+    (arguments
+     `(#:tests? #f
+       #:python ,python-2))
+    (home-page "https://www.dlitz.net/software/python-pbkdf2/";)
+    (synopsis "A module that implements function PBKDF2.")
+    (description
+     "A module that implements the password-based key derivation 
+function PBKDF2.")
+    (license license:expat)))
-- 
2.7.4

Reply via email to