1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "zxcvbn"; 10 version = "4.4.28"; 11 format = "setuptools"; 12 13 # no tests included in PyPI tarball 14 src = fetchFromGitHub { 15 owner = "dwolfhub"; 16 repo = "zxcvbn-python"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-etcST7pxlpOH5Q9KtOPGf1vmnkyjEp6Cd5QCmBjW9Hc="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 meta = with lib; { 24 description = "Python implementation of Dropbox's realistic password strength estimator"; 25 mainProgram = "zxcvbn"; 26 homepage = "https://github.com/dwolfhub/zxcvbn-python"; 27 license = licenses.mit; 28 maintainers = [ ]; 29 }; 30}