2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
mako,
|
|
|
|
markdown,
|
|
|
|
setuptools-git,
|
|
|
|
setuptools-scm,
|
2024-09-19 14:19:46 +00:00
|
|
|
unittestCheckHook,
|
2020-11-24 20:58:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdoc3";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.11.1";
|
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pdoc3";
|
|
|
|
repo = "pdoc";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Opj1fU1eZvqsYJGCBliVwugxFV4H1hzOOTkjs4fOEWA=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
2021-12-06 16:07:01 +00:00
|
|
|
setuptools-git
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-03-15 16:39:30 +00:00
|
|
|
mako
|
2021-12-06 16:07:01 +00:00
|
|
|
markdown
|
|
|
|
];
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonImportsCheck = [ "pdoc" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/pdoc3/pdoc/blob/${src.rev}/CHANGELOG";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Auto-generate API documentation for Python projects";
|
2020-11-24 20:58:05 +00:00
|
|
|
homepage = "https://pdoc3.github.io/pdoc/";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.agpl3Plus;
|
|
|
|
mainProgram = "pdoc";
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
}
|