1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 rustPlatform, 7}: 8 9buildPythonPackage rec { 10 pname = "zxcvbn-rs-py"; 11 version = "0.2.0"; 12 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchPypi { 18 pname = "zxcvbn_rs_py"; 19 inherit version; 20 hash = "sha256-DQzdOngHGZma2NyfrNuMppG6GzpGoKfwVQGUVmN7erA="; 21 }; 22 23 build-system = [ 24 rustPlatform.cargoSetupHook 25 rustPlatform.maturinBuildHook 26 ]; 27 28 cargoDeps = rustPlatform.fetchCargoVendor { 29 inherit pname version src; 30 hash = "sha256-WkaTEoVQVOwxcTyOIG5oHEvcv65fBEpokl3/6SxqiUw="; 31 }; 32 33 pythonImportsCheck = [ "zxcvbn_rs_py" ]; 34 35 meta = with lib; { 36 description = "Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn"; 37 homepage = "https://github.com/fief-dev/zxcvbn-rs-py/"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ erictapen ]; 40 }; 41 42}