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