xkcdpass: py2 -> py3, add manpage and run tests
This commit is contained in:
parent
652b2d6dba
commit
6d489a3eb4
|
@ -1,6 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, pytestCheckHook
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -12,14 +14,21 @@ buildPythonPackage rec {
|
||||||
sha256 = "0ghsjs5bxl996pap910q9s21nywb26mfpjd92rbfywbnj8f2k2cy";
|
sha256 = "0ghsjs5bxl996pap910q9s21nywb26mfpjd92rbfywbnj8f2k2cy";
|
||||||
};
|
};
|
||||||
|
|
||||||
# No tests included
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
# https://github.com/redacted/XKCD-password-generator/issues/32
|
|
||||||
doCheck = false;
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "xkcdpass" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage *.?
|
||||||
|
install -Dm444 -t $out/share/doc/${pname} README*
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pypi.python.org/pypi/xkcdpass/";
|
|
||||||
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
|
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
|
||||||
|
homepage = "https://pypi.python.org/pypi/xkcdpass/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3805,7 +3805,7 @@ in
|
||||||
|
|
||||||
wsl-open = callPackage ../tools/misc/wsl-open { };
|
wsl-open = callPackage ../tools/misc/wsl-open { };
|
||||||
|
|
||||||
xkcdpass = with pythonPackages; toPythonApplication xkcdpass;
|
xkcdpass = with python3Packages; toPythonApplication xkcdpass;
|
||||||
|
|
||||||
xob = callPackage ../tools/X11/xob { };
|
xob = callPackage ../tools/X11/xob { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue