2024-11-21 16:52:31 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
pythonAtLeast,
|
|
|
|
fetchPypi,
|
|
|
|
rustPlatform,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zxcvbn-rs-py";
|
2025-01-03 12:40:59 +01:00
|
|
|
version = "0.2.0";
|
2024-11-21 16:52:31 +01:00
|
|
|
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9" || pythonAtLeast "3.13";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "zxcvbn_rs_py";
|
|
|
|
inherit version;
|
2025-01-03 12:40:59 +01:00
|
|
|
hash = "sha256-DQzdOngHGZma2NyfrNuMppG6GzpGoKfwVQGUVmN7erA=";
|
2024-11-21 16:52:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.maturinBuildHook
|
|
|
|
];
|
|
|
|
|
2025-01-23 16:07:59 +01:00
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
2025-05-30 04:18:04 +02:00
|
|
|
inherit pname version src;
|
2025-01-29 16:08:41 +01:00
|
|
|
hash = "sha256-WkaTEoVQVOwxcTyOIG5oHEvcv65fBEpokl3/6SxqiUw=";
|
2024-11-21 16:52:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|