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