blob: 95b2442a3f3c0eaf35e416e95ecdecde5d7a897f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchPypi,
installShellFiles,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "xkcdpass";
version = "1.20.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-tav9fStZzdpZ+Tf7IiEKxGSa0NLgnh+Hv+dKVOI60Yo=";
};
nativeBuildInputs = [ installShellFiles ];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xkcdpass" ];
disabledTests = [
# https://github.com/redacted/XKCD-password-generator/issues/138
"test_entropy_printout_valid_input"
];
postInstall = ''
installManPage *.?
install -Dm444 -t $out/share/doc/${pname} README*
'';
meta = {
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
homepage = "https://github.com/redacted/XKCD-password-generator";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ peterhoeg ];
mainProgram = "xkcdpass";
};
}
|