2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
packaging,
|
|
|
|
tomli,
|
|
|
|
pytestCheckHook,
|
|
|
|
pip,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# TypeError: dist must be a Distribution instance
|
|
|
|
"test_old_example"
|
|
|
|
"test_old_example_file_name"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "argparse_manpage" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|