1{
2 lib,
3 buildPythonPackage,
4 setuptools,
5 fetchPypi,
6 pythonOlder,
7 cffi,
8 pytestCheckHook,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "bcrypt";
14 version = "3.2.2";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-QzxBDCF3BXcF2iqfLNAd0VdJOyp6wUyFk6FrPatra/s=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [
27 six
28 cffi
29 ];
30
31 propagatedNativeBuildInputs = [ cffi ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "bcrypt" ];
36
37 meta = with lib; {
38 description = "Modern password hashing for your software and your servers";
39 homepage = "https://github.com/pyca/bcrypt/";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ ];
42 };
43}