2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-19 00:13:47 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, astroid
|
|
|
|
, jinja2
|
|
|
|
, sphinx
|
|
|
|
, pyyaml
|
|
|
|
, unidecode
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.8.1";
|
2020-11-19 00:13:47 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "842c0a8f49c824803f7edee31cb1cabd5001a987553bec7b4681283ec9e47d4a";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astroid jinja2 pyyaml sphinx unidecode ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|