python3Packages.zxcvbn-rs-py: init at 0.1.1

This commit is contained in:
Kerstin Humm
2024-11-21 20:28:03 +01:00
committed by Valentin Gagarin
parent d6f955ba9b
commit 6849c636b4
2 changed files with 46 additions and 0 deletions
@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
fetchPypi,
rustPlatform,
}:
buildPythonPackage rec {
pname = "zxcvbn-rs-py";
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.9" || pythonAtLeast "3.13";
src = fetchPypi {
pname = "zxcvbn_rs_py";
inherit version;
hash = "sha256-7EZJ/WGekfsnisqTs9dwwbQia6OlDEx3MR9mkqSI+gA=";
};
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
cargoDeps = rustPlatform.fetchCargoTarball {
name = "${pname}-${version}";
inherit src;
hash = "sha256-OA6iyojBMAG9GtjHaIQ9cM0SEMwMa2bKFRIXmqp4OBE=";
};
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 ];
};
}
+2
View File
@@ -18303,6 +18303,8 @@ self: super: with self; {
zxcvbn = callPackage ../development/python-modules/zxcvbn { };
zxcvbn-rs-py = callPackage ../development/python-modules/zxcvbn-rs-py { };
zxing-cpp = callPackage ../development/python-modules/zxing-cpp {
libzxing-cpp = pkgs.zxing-cpp;
};