1{ lib
2, buildPythonPackage
3, setuptools
4, isPyPy
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 = [
25 setuptools
26 ];
27
28 propagatedBuildInputs = [
29 six
30 cffi
31 ];
32
33 propagatedNativeBuildInputs = [
34 cffi
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "bcrypt"
43 ];
44
45 meta = with lib; {
46 description = "Modern password hashing for your software and your servers";
47 homepage = "https://github.com/pyca/bcrypt/";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ domenkozar ];
50 };
51}