nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 841 B view raw
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.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29"; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 ]; 27 28 propagatedBuildInputs = [ 29 six 30 cffi 31 ]; 32 33 propagatedNativeBuildInputs = [ 34 cffi 35 ]; 36 37 checkInputs = [ 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}