2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
2020-11-24 20:58:05 +00:00
|
|
|
, pythonOlder
|
|
|
|
, Mako
|
|
|
|
, markdown
|
|
|
|
, setuptools-git
|
2021-06-04 09:07:49 +00:00
|
|
|
, 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";
|
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=";
|
|
|
|
excludes = [".github/workflows/ci.yml"];
|
2021-12-06 16:07:01 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-git
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
Mako
|
|
|
|
markdown
|
|
|
|
];
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Auto-generate API documentation for Python projects.";
|
|
|
|
homepage = "https://pdoc3.github.io/pdoc/";
|
|
|
|
license = with licenses; [ agpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|