1{ stdenv, buildPythonPackage, isPyPy, fetchPypi
2, cffi, pycparser, mock, pytest, py, six }:
3
4with stdenv.lib;
5
6buildPythonPackage rec {
7 version = "3.1.4";
8 pname = "bcrypt";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "67ed1a374c9155ec0840214ce804616de49c3df9c5bc66740687c1c9b1cd9e8d";
13 };
14 buildInputs = [ pycparser mock pytest py ];
15 propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
16
17 meta = {
18 maintainers = with maintainers; [ domenkozar ];
19 description = "Modern password hashing for your software and your servers";
20 license = licenses.asl20;
21 homepage = https://github.com/pyca/bcrypt/;
22 };
23}