1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 sphinx,
7 pre-commit,
8 ipython,
9 myst-parser,
10 sphinx-book-theme,
11 pytest,
12}:
13
14buildPythonPackage rec {
15 pname = "sphinx-remove-toctrees";
16 version = "1.0.0.post1";
17 pyproject = true;
18
19 src = fetchPypi {
20 pname = "sphinx_remove_toctrees";
21 inherit version;
22 hash = "sha256-SAjR7fFRwG7/bSw5Iux+vJ/Tqhdi3hsuFnSjf1rJzi0=";
23 };
24
25 build-system = [
26 hatchling
27 ];
28
29 dependencies = [
30 sphinx
31 ];
32
33 optional-dependencies = {
34 code_style = [
35 pre-commit
36 ];
37 docs = [
38 ipython
39 myst-parser
40 sphinx-book-theme
41 ];
42 tests = [
43 ipython
44 myst-parser
45 pytest
46 sphinx-book-theme
47 ];
48 };
49
50 pythonImportsCheck = [
51 "sphinx_remove_toctrees"
52 ];
53
54 meta = {
55 description = "Reduce your documentation build size by selectively removing toctrees from pages";
56 homepage = "https://pypi.org/project/sphinx-remove-toctrees/";
57 license = lib.licenses.mit;
58 maintainers = with lib.maintainers; [ ];
59 };
60}