blob: 6236e4150a06d6860d5232df3b7c7fce8bdea988 (
plain) (
blame)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
packaging,
tomli,
pytestCheckHook,
pip,
}:
buildPythonPackage rec {
pname = "argparse-manpage";
version = "4.5";
pyproject = true;
src = fetchFromGitHub {
owner = "praiskup";
repo = "argparse-manpage";
rev = "v${version}";
hash = "sha256-9lriW+Yx/6ysoumloQglDm5JEcKNUWm422B3P6IE/EE=";
};
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"
];
pythonImportsCheck = [ "argparse_manpage" ];
passthru.optional-dependencies = {
setuptools = [ setuptools ];
};
meta = with lib; {
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.rev}/NEWS";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
mainProgram = "argparse-manpage";
};
}
|