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