python3Packages.zxcvbn: modernize

This commit is contained in:
Harinn
2026-06-13 05:29:36 +07:00
parent 9ee7545cf9
commit 787d6a89b8
@@ -6,16 +6,18 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "zxcvbn";
version = "4.5.0";
pyproject = true;
__structuredAttrs = true;
# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "dwolfhub";
repo = "zxcvbn-python";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-0SVJkJMEMnZVMpamDVP02kMwWRSj5zGlrMYG9kn0aXQ=";
};
@@ -23,6 +25,8 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "zxcvbn" ];
meta = {
description = "Python implementation of Dropbox's realistic password strength estimator";
mainProgram = "zxcvbn";
@@ -30,4 +34,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})