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-07-27 06:49:29 +00:00
|
|
|
version = "3.2.0";
|
|
|
|
pyproject = true;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "sphinx_autoapi";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-+AWA/1DseoZA3J0MPEDqrNOnFbtyx6t4Dk5QTB0HWfs=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|