Files
nixpkgs/pkgs/development/python-modules/help2man/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
jinja2,
setuptools-scm,
shtab,
tomli,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "help2man";
version = "0.0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "Freed-Wu";
repo = "help2man";
rev = version;
hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
};
build-system = [
jinja2
setuptools-scm
shtab
tomli
];
dependencies = [ jinja2 ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# Checks the output of `help2man --help`.
# Broken since 3.13 due to changes in `argparse`.
# Upstream issue: https://github.com/Freed-Wu/help2man/issues/6
"test_help"
];
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";
};
}