1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 jinja2,
7 setuptools-scm,
8 shtab,
9 tomli,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "help2man";
15 version = "0.0.9";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "Freed-Wu";
22 repo = "help2man";
23 rev = version;
24 hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
25 };
26
27 nativeBuildInputs = [
28 jinja2
29 setuptools-scm
30 shtab
31 tomli
32 ];
33
34 propagatedBuildInputs = [ jinja2 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "help2man" ];
39
40 meta = with lib; {
41 description = "Convert --help and --version to man page";
42 homepage = "https://github.com/Freed-Wu/help2man";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ natsukium ];
45 mainProgram = "help2man";
46 };
47}