From 52b97d96f0952194560040b9279fcff17c94a728 Mon Sep 17 00:00:00 2001 From: Eric Dvorsak Date: Sat, 25 Jul 2015 21:39:03 +0200 Subject: [PATCH 6/8] gnu: Add python-py-bcrypt. * gnu/packages/python.scm (python-py-bcrypt, python2-py-bcrypt): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cc0ed25..904ec1e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -297,6 +297,34 @@ pidof, tty, taskset, pmap.") (define-public python2-psutil (package-with-python2 python-psutil)) +(define-public python-py-bcrypt + (package + (name "python-py-bcrypt") + (version "0.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-" + version + ".tar.gz")) + (sha256 + (base32 + "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://code.google.com/p/py-bcrypt") + (synopsis + "Bcrypt password hashing and key derivation") + (description + "A python wrapper of OpenBSD's Blowfish password hashing code. This system hashes passwords using a version of Bruce Schneier's Blowfish block cipher with modifications designed to raise the cost of off-line password cracking and frustrate fast hardware implementation. The computation cost of the algorithm is parametised, so it can be increased as computers get faster. The intent is to make a compromise of a password database less likely to result in an attacker gaining knowledge of the plaintext passwords (e.g. using John the Ripper).") + (license bsd-3))) + +(define-public python2-py-bcrypt + (package-with-python2 python-py-bcrypt)) + + (define-public python-paramiko (package (name "python-paramiko") -- 2.4.3