summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinx-remove-toctrees/default.nix
blob: 05ab588decbb460b43eea633e2003fa9217b6af5 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  sphinx,
  pre-commit,
  ipython,
  myst-parser,
  sphinx-book-theme,
  pytest,
}:

buildPythonPackage rec {
  pname = "sphinx-remove-toctrees";
  version = "1.0.0.post1";
  pyproject = true;

  src = fetchPypi {
    pname = "sphinx_remove_toctrees";
    inherit version;
    hash = "sha256-SAjR7fFRwG7/bSw5Iux+vJ/Tqhdi3hsuFnSjf1rJzi0=";
  };

  build-system = [
    hatchling
  ];

  dependencies = [
    sphinx
  ];

  optional-dependencies = {
    code_style = [
      pre-commit
    ];
    docs = [
      ipython
      myst-parser
      sphinx-book-theme
    ];
    tests = [
      ipython
      myst-parser
      pytest
      sphinx-book-theme
    ];
  };

  pythonImportsCheck = [
    "sphinx_remove_toctrees"
  ];

  meta = {
    description = "Reduce your documentation build size by selectively removing toctrees from pages";
    homepage = "https://pypi.org/project/sphinx-remove-toctrees/";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}