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