1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pbr,
6 sphinx,
7}:
8
9buildPythonPackage rec {
10 pname = "sphinxcontrib-fulltoc";
11 version = "1.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "sphinx-contrib";
16 repo = "fulltoc";
17 tag = version;
18 hash = "sha256-rpzKiZgsuAqhLDEYURv77SDJny3eqfj0VtJ1tqT29IQ=";
19 };
20
21 env.PBR_VERSION = version;
22
23 build-system = [ pbr ];
24
25 dependencies = [ sphinx ];
26
27 # Module has no unit tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];
31
32 pythonNamespaces = [ "sphinxcontrib" ];
33
34 meta = with lib; {
35 description = "Include a full table of contents in your Sphinx HTML sidebar";
36 homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";
37 changelog = "https://github.com/sphinx-contrib/fulltoc/releases/tag/${src.tag}";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ jluttine ];
40 };
41}