From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 14/16] gnu: Add python-bcrypt. Date: Sun, 11 Sep 2016 21:58:55 +0300 Message-ID: <20160911185857.2123-15-efraim@flashner.co.il> References: <20160911185857.2123-1-efraim@flashner.co.il> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yL-00038W-C8 for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bj9yK-0008Dg-6y for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:21 -0400 Received: from flashner.co.il ([178.62.234.194]:52862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bj9yK-00088P-0Q for guix-devel@gnu.org; Sun, 11 Sep 2016 14:59:20 -0400 Received: from localhost (85.64.232.168.dynamic.barak-online.net [85.64.232.168]) by flashner.co.il (Postfix) with ESMTPSA id 3532E4039C for ; Sun, 11 Sep 2016 18:59:17 +0000 (UTC) In-Reply-To: <20160911185857.2123-1-efraim@flashner.co.il> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/password-utils.scm (python-bcrypt): New variable. --- gnu/packages/password-utils.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm index 7288da6..d2410c6 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -334,3 +334,38 @@ through the pass command.") (description "Argon2 provides a key derivation function that was declared winner of the 2015 Password Hashing Competition.") (license license:cc0))) + +(define-public python-bcrypt + (package + (name "python-bcrypt") + (version "3.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "bcrypt" version)) + (sha256 + (base32 + "1giy0dvd8gvq6flxh44np1v2nqwsji5qsnrz038mgwzgp7c20j75")))) + (build-system python-build-system) + (native-inputs + `(("python-pycparser" ,python-pycparser) + ("python-pytest" ,python-pytest))) + (inputs + `(("python-cffi" ,python-cffi) + ("python-six" ,python-six))) + (home-page "https://github.com/pyca/bcrypt/") + (synopsis + "Modern password hashing library") + (description + "Bcrypt is a Python module which provides a password hashing method based +on the Blowfish password hashing algorithm, as described in +@url{http://static.usenix.org/events/usenix99/provos.html,\"A Future-Adaptable +Password Scheme\"} by Niels Provos and David Mazieres.") + (license license:asl2.0))) + +(define-public python2-bcrypt + (let ((bcrypt (package-with-python2 python-bcrypt))) + (package (inherit bcrypt) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs bcrypt)))))) -- 2.10.0