2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
jinja2,
|
|
|
|
setuptools-scm,
|
|
|
|
shtab,
|
|
|
|
tomli,
|
|
|
|
pytestCheckHook,
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "help2man";
|
|
|
|
version = "0.0.9";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Freed-Wu";
|
|
|
|
repo = "help2man";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
setuptools-scm
|
|
|
|
shtab
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "help2man" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert --help and --version to man page";
|
|
|
|
homepage = "https://github.com/Freed-Wu/help2man";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
mainProgram = "help2man";
|
|
|
|
};
|
|
|
|
}
|