nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 39 lines 835 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 rustPlatform, 6}: 7 8buildPythonPackage rec { 9 pname = "zxcvbn-rs-py"; 10 version = "0.3.0"; 11 12 pyproject = true; 13 14 src = fetchPypi { 15 pname = "zxcvbn_rs_py"; 16 inherit version; 17 hash = "sha256-0nQmgII6F0gj8HCnNAdLvowWBPExPAgXCxWAJuNsc6A="; 18 }; 19 20 build-system = [ 21 rustPlatform.cargoSetupHook 22 rustPlatform.maturinBuildHook 23 ]; 24 25 cargoDeps = rustPlatform.fetchCargoVendor { 26 inherit pname version src; 27 hash = "sha256-S6K6ZzW24V2yFV89B+gN+Odc4h3R45lF+emZs69dzYg="; 28 }; 29 30 pythonImportsCheck = [ "zxcvbn_rs_py" ]; 31 32 meta = { 33 description = "Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn"; 34 homepage = "https://github.com/fief-dev/zxcvbn-rs-py/"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ erictapen ]; 37 }; 38 39}