1{ lib, buildPythonPackage, fetchFromGitHub, pytest }: 2 3buildPythonPackage { 4 pname = "zxcvbn"; 5 version = "4.4.28"; 6 7 # no tests included in PyPI tarball 8 src = fetchFromGitHub { 9 owner = "dwolfhub"; 10 repo = "zxcvbn-python"; 11 rev = "45afdf0d3dd8477bc7e457629bb4bc9680794cd7"; # not tagged in repository 12 sha256 = "0w0sx9ssjks8da973cdv5xi87yjsf038jqxmzj2y26xvpyjsg2v2"; 13 }; 14 15 checkInputs = [ pytest ]; 16 17 checkPhase = '' 18 pytest 19 ''; 20 21 meta = with lib; { 22 description = "Python implementation of Dropbox's realistic password strength estimator"; 23 homepage = "https://github.com/dwolfhub/zxcvbn-python"; 24 license = licenses.mit; 25 maintainers = [ maintainers.marsam ]; 26 }; 27}