2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
pythonOlder,
|
|
|
|
mako,
|
|
|
|
markdown,
|
|
|
|
setuptools-git,
|
|
|
|
setuptools-scm,
|
2020-11-24 20:58:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pdoc3";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.10.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-24 20:58:05 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-04 12:27:35 +00:00
|
|
|
hash = "sha256-XyLnvLlpAGc44apCGcdaMvNMLWLUbcnS+y0+CwKH5Lc=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# test_Class_params fails in 0.10.0
|
|
|
|
# https://github.com/pdoc3/pdoc/issues/355
|
|
|
|
url = "https://github.com/pdoc3/pdoc/commit/4aa70de2221a34a3003a7e5f52a9b91965f0e359.patch";
|
2022-11-04 12:27:35 +00:00
|
|
|
hash = "sha256-W7Dy516cA+Oj0ZCTQBB6MJ+fCTBeLRp+aW8nANdxSx8=";
|
|
|
|
})
|
|
|
|
# https://github.com/pdoc3/pdoc/issues/400
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-test-for-python310.patch";
|
|
|
|
url = "https://github.com/pdoc3/pdoc/commit/80af5d40d3ca39e2701c44941c1003ae6a280799.patch";
|
|
|
|
hash = "sha256-69Cn+BY7feisSHugONIF/PRgEDEfnvnS/RBHWv1P8/w=";
|
2024-06-05 15:53:02 +00:00
|
|
|
excludes = [ ".github/workflows/ci.yml" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-git
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
|
|
|
|
meta = with lib; {
|
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/";
|
|
|
|
license = with licenses; [ agpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|