python3Packages.zxcvbn: modernize
This commit is contained in:
@@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user