2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, astroid
|
2020-11-19 00:13:47 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
2022-09-30 11:47:45 +00:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-11-19 00:13:47 +00:00
|
|
|
, pyyaml
|
2022-09-30 11:47:45 +00:00
|
|
|
, sphinx
|
|
|
|
, stdenv
|
2023-03-15 16:39:30 +00:00
|
|
|
, typing-extensions
|
2020-11-19 00:13:47 +00:00
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2.0.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zfR5aMIIUvT+sMzv0J5BS7ggr4r4+C+rFaJLCaPRuro=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astroid
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
unidecode
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
typing-extensions
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|