summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix
blob: 3fd6d39a31c7966a6c58547ed407cd5cfe377bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pbr,
  sphinx,
}:

buildPythonPackage rec {
  pname = "sphinxcontrib-fulltoc";
  version = "1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sphinx-contrib";
    repo = "fulltoc";
    tag = version;
    hash = "sha256-rpzKiZgsuAqhLDEYURv77SDJny3eqfj0VtJ1tqT29IQ=";
  };

  env.PBR_VERSION = version;

  build-system = [ pbr ];

  dependencies = [ sphinx ];

  # Module has no unit tests
  doCheck = false;

  pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];

  pythonNamespaces = [ "sphinxcontrib" ];

  meta = {
    description = "Include a full table of contents in your Sphinx HTML sidebar";
    homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";
    changelog = "https://github.com/sphinx-contrib/fulltoc/releases/tag/${src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ jluttine ];
  };
}