python3Packages.zxcvbn: migrate to pyproject (#531371)

This commit is contained in:
Yohann Boniface
2026-06-13 22:32:43 +00:00
committed by GitHub
@@ -2,24 +2,31 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "zxcvbn";
version = "4.5.0";
format = "setuptools";
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=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "zxcvbn" ];
meta = {
description = "Python implementation of Dropbox's realistic password strength estimator";
mainProgram = "zxcvbn";
@@ -27,4 +34,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})