1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, installShellFiles
6}:
7
8buildPythonPackage rec {
9 pname = "xkcdpass";
10 version = "1.19.3";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "c5a2e948746da6fe504e8404284f457d8e98da6df5047c6bb3f71b18882e9d2a";
15 };
16
17 nativeBuildInputs = [ installShellFiles ];
18
19 checkInputs = [ pytestCheckHook ];
20
21 pythonImportsCheck = [ "xkcdpass" ];
22
23 postInstall = ''
24 installManPage *.?
25 install -Dm444 -t $out/share/doc/${pname} README*
26 '';
27
28 meta = with lib; {
29 description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
30 homepage = "https://pypi.python.org/pypi/xkcdpass/";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ peterhoeg ];
33 };
34}