blob: 81c73582462d4b7fe987b1513b53da1db672f7ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
packaging,
tomli,
pytestCheckHook,
pip,
}:
buildPythonPackage rec {
pname = "argparse-manpage";
version = "4.7";
pyproject = true;
src = fetchFromGitHub {
owner = "praiskup";
repo = "argparse-manpage";
tag = "v${version}";
hash = "sha256-nonC0oK3T/8+gSa0lRaCf2wvvXoRBPP8b1jioNmW4qI=";
};
nativeBuildInputs = [
setuptools
packaging
]
++ lib.optionals (pythonOlder "3.11") [ tomli ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
pytestCheckHook
pip
];
disabledTests = [
# TypeError: dist must be a Distribution instance
"test_old_example"
"test_old_example_file_name"
];
disabledTestPaths = [
# network access to install setuptools, likely due to pip update
"tests/test_examples.py"
];
pythonImportsCheck = [ "argparse_manpage" ];
optional-dependencies = {
setuptools = [ setuptools ];
};
meta = {
description = "Automatically build man-pages for your Python project";
homepage = "https://github.com/praiskup/argparse-manpage";
changelog = "https://github.com/praiskup/argparse-manpage/blob/${src.tag}/NEWS";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nickcao ];
mainProgram = "argparse-manpage";
};
}
|