1{ lib
2, astroid
3, buildPythonPackage
4, fetchPypi
5, jinja2
6, mock
7, pytestCheckHook
8, pythonOlder
9, pyyaml
10, sphinx
11, stdenv
12, unidecode
13}:
14
15buildPythonPackage rec {
16 pname = "sphinx-autoapi";
17 version = "2.0.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-l9zxtbVM0Njv74Z1lOSk8+LTosDsHlqJHgphvHcEYAY=";
25 };
26
27 propagatedBuildInputs = [
28 astroid
29 jinja2
30 pyyaml
31 sphinx
32 unidecode
33 ];
34
35 checkInputs = [
36 mock
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "autoapi"
42 ];
43
44 meta = with lib; {
45 homepage = "https://github.com/readthedocs/sphinx-autoapi";
46 description = "Provides 'autodoc' style documentation";
47 longDescription = "Sphinx AutoAPI provides 'autodoc' style documentation for multiple programming languages without needing to load, run, or import the project being documented.";
48 license = licenses.mit;
49 maintainers = with maintainers; [ karolchmist ];
50 broken = stdenv.isDarwin;
51 };
52}