2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 19:03:54 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-25 07:45:52 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, installShellFiles
|
2018-10-29 19:03:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xkcdpass";
|
2020-12-20 13:33:13 +00:00
|
|
|
version = "1.17.6";
|
2018-10-29 19:03:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-20 13:33:13 +00:00
|
|
|
sha256 = "0ghsjs5bxl996pap910q9s21nywb26mfpjd92rbfywbnj8f2k2cy";
|
2018-10-29 19:03:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-25 07:45:52 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "xkcdpass" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage *.?
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} README*
|
|
|
|
'';
|
2018-10-29 19:03:54 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 19:03:54 +00:00
|
|
|
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
|
2021-01-25 07:45:52 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/xkcdpass/";
|
2018-10-29 19:03:54 +00:00
|
|
|
license = licenses.bsd3;
|
2021-01-25 07:45:52 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-10-29 19:03:54 +00:00
|
|
|
};
|
|
|
|
}
|