12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7";
20 inherit pname version;
21 hash = "sha256-qU+HG9qHBmjlxl64QpbpOWADYt8swDa5HFyjgVvSktc=";
24 nativeBuildInputs = [ installShellFiles ];
26 build-system = [ setuptools ];
28 nativeCheckInputs = [ pytestCheckHook ];
30 pythonImportsCheck = [ "xkcdpass" ];
32 disabledTests = lib.optionals (pythonAtLeast "3.10") [
33 # https://github.com/redacted/XKCD-password-generator/issues/138
34 "test_entropy_printout_valid_input"
39 install -Dm444 -t $out/share/doc/${pname} README*
43 description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
44 homepage = "https://github.com/redacted/XKCD-password-generator";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ peterhoeg ];
47 mainProgram = "xkcdpass";