2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2020-09-18 10:41:27 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, astroid
|
|
|
|
, jinja2
|
|
|
|
, sphinx
|
|
|
|
, pyyaml
|
|
|
|
, unidecode
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-autoapi";
|
2021-03-24 10:28:29 +01:00
|
|
|
version = "1.7.0";
|
2020-09-18 10:41:27 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:29 +01:00
|
|
|
sha256 = "48caa054a99c21156e9a1d26559281dc27f86ab8ef8bb6ef160f8cd9f4a0053d";
|
2020-09-18 10:41:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ astroid jinja2 pyyaml sphinx unidecode ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-09-18 10:41:27 +02: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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|