1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "zxcvbn"; 10 version = "4.5.0"; 11 format = "setuptools"; 12 13 # no tests included in PyPI tarball 14 src = fetchFromGitHub { 15 owner = "dwolfhub"; 16 repo = "zxcvbn-python"; 17 tag = "v${version}"; 18 hash = "sha256-0SVJkJMEMnZVMpamDVP02kMwWRSj5zGlrMYG9kn0aXQ="; 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}