2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, 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;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "5f22e7bcb969006738e1aa4219c75a32f34c2d62d46dc9d2fb2d3e0b0287e4b7";
|
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";
|
|
|
|
sha256 = "07sbf7bh09vgd5z1lbay604rz7rhg88414whs6iy60wwbvkz5c2v";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|