xkcdpass: py2 -> py3, add manpage and run tests

This commit is contained in:
Peter Hoeg 2021-01-25 15:45:52 +08:00
parent 652b2d6dba
commit 6d489a3eb4
2 changed files with 15 additions and 6 deletions

View File

@ -1,6 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, installShellFiles
}:
buildPythonPackage rec {
@ -12,14 +14,21 @@ buildPythonPackage rec {
sha256 = "0ghsjs5bxl996pap910q9s21nywb26mfpjd92rbfywbnj8f2k2cy";
};
# No tests included
# https://github.com/redacted/XKCD-password-generator/issues/32
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "xkcdpass" ];
postInstall = ''
installManPage *.?
install -Dm444 -t $out/share/doc/${pname} README*
'';
meta = with lib; {
homepage = "https://pypi.python.org/pypi/xkcdpass/";
description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
homepage = "https://pypi.python.org/pypi/xkcdpass/";
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@ -3805,7 +3805,7 @@ in
wsl-open = callPackage ../tools/misc/wsl-open { };
xkcdpass = with pythonPackages; toPythonApplication xkcdpass;
xkcdpass = with python3Packages; toPythonApplication xkcdpass;
xob = callPackage ../tools/X11/xob { };