8 setuptoolsRustBuildHook,
22 buildPythonPackage rec {
27 disabled = pythonOlder "3.6";
30 inherit pname version;
31 hash = "sha256-z2nq9Rhf1Y8mj4BbUFzjH5ufwtZLN2ZCFk6SRFQMEiE=";
34 cargoRoot = "src/_bcrypt";
35 cargoDeps = rustPlatform.fetchCargoTarball {
37 sourceRoot = "${pname}-${version}/${cargoRoot}";
38 name = "${pname}-${version}";
39 hash = "sha256-dOS9A3pTwXYkzPFFNh5emxJw7pSdDyY+mNIoHdwNdmg=";
44 setuptoolsRustBuildHook
45 rustPlatform.cargoSetupHook
50 # Remove when https://github.com/NixOS/nixpkgs/pull/190093 lands.
51 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
53 nativeCheckInputs = [ pytestCheckHook ];
55 pythonImportsCheck = [ "bcrypt" ];
68 description = "Modern password hashing for your software and your servers";
69 homepage = "https://github.com/pyca/bcrypt/";
70 license = licenses.asl20;
71 maintainers = with maintainers; [ domenkozar ];