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