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
|
2020-11-19 00:13:47 +00:00
|
|
|
, unidecode
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.0.0";
|
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;
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-l9zxtbVM0Njv74Z1lOSk8+LTosDsHlqJHgphvHcEYAY=";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astroid
|
|
|
|
jinja2
|
|
|
|
pyyaml
|
|
|
|
sphinx
|
|
|
|
unidecode
|
|
|
|
];
|
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
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
description = "Provides 'autodoc' style documentation";
|
|
|
|
longDescription = "Sphinx AutoAPI provides 'autodoc' style documentation for multiple programming languages without needing to load, run, or import the project being documented.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ karolchmist ];
|
|
|
|
};
|
|
|
|
}
|