2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build-system
|
|
|
|
setuptools,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# dependencies
|
|
|
|
astroid,
|
|
|
|
anyascii,
|
|
|
|
jinja2,
|
|
|
|
pyyaml,
|
|
|
|
sphinx,
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
beautifulsoup4,
|
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.0.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-CevWdKMrREZyIrD7ipF7l8iVI/INvwW1LLij8OFXFN4=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
anyascii
|
2022-09-30 11:47:45 +00:00
|
|
|
astroid
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
beautifulsoup4
|
2020-11-19 00:13:47 +00:00
|
|
|
mock
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
2020-11-19 00:13:47 +00:00
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
disabledTests = [
|
|
|
|
# failing typing assertions
|
|
|
|
"test_integration"
|
|
|
|
"test_annotations"
|
2024-05-15 15:35:15 +00:00
|
|
|
# sphinx.errors.SphinxWarning: cannot cache unpickable configuration value: 'autoapi_prepare_jinja_env' (because it contains a function, class, or module object)
|
|
|
|
"test_custom_jinja_filters"
|
2023-03-15 16:39:30 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "autoapi" ];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-19 00:13:47 +00:00
|
|
|
homepage = "https://github.com/readthedocs/sphinx-autoapi";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/readthedocs/sphinx-autoapi/blob/v${version}/CHANGELOG.rst";
|
2020-11-19 00:13:47 +00:00
|
|
|
description = "Provides 'autodoc' style documentation";
|
2023-03-15 16:39:30 +00:00
|
|
|
longDescription = ''
|
|
|
|
Sphinx AutoAPI provides 'autodoc' style documentation for
|
|
|
|
multiple programming languages without needing to load, run, or
|
|
|
|
import the project being documented.
|
|
|
|
'';
|
2020-11-19 00:13:47 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ karolchmist ];
|
|
|
|
};
|
|
|
|
}
|