2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
2020-11-19 00:13:47 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
, astroid
|
|
|
|
, anyascii
|
|
|
|
, jinja2
|
2020-11-19 00:13:47 +00:00
|
|
|
, pyyaml
|
2022-09-30 11:47:45 +00:00
|
|
|
, sphinx
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, beautifulsoup4
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2020-11-19 00:13:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.1.1";
|
|
|
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-+625bnkCDWsOxF2IhRe/gW1rWHotNA++HsMRNeMApsg=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +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 ];
|
|
|
|
};
|
|
|
|
}
|