mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
43 lines
926 B
Nix
43 lines
926 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
pythonAtLeast,
|
|
fetchPypi,
|
|
rustPlatform,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zxcvbn-rs-py";
|
|
version = "0.2.0";
|
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9" || pythonAtLeast "3.13";
|
|
|
|
src = fetchPypi {
|
|
pname = "zxcvbn_rs_py";
|
|
inherit version;
|
|
hash = "sha256-DQzdOngHGZma2NyfrNuMppG6GzpGoKfwVQGUVmN7erA=";
|
|
};
|
|
|
|
build-system = [
|
|
rustPlatform.cargoSetupHook
|
|
rustPlatform.maturinBuildHook
|
|
];
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit pname version src;
|
|
hash = "sha256-WkaTEoVQVOwxcTyOIG5oHEvcv65fBEpokl3/6SxqiUw=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "zxcvbn_rs_py" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for zxcvbn-rs, the Rust implementation of zxcvbn";
|
|
homepage = "https://github.com/fief-dev/zxcvbn-rs-py/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ erictapen ];
|
|
};
|
|
|
|
}
|