Unverified Commit 923ae175 authored by Adam C. Stephens's avatar Adam C. Stephens
Browse files

pythonPackages.sphinx-remove-toctrees: init at 1.0.0.post1

parent e06dd547
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{
  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 = with lib.maintainers; [ ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16175,6 +16175,8 @@ self: super: with self; {
  sphinx-reredirects = callPackage ../development/python-modules/sphinx-reredirects { };
  sphinx-remove-toctrees = callPackage ../development/python-modules/sphinx-remove-toctrees { };
  sphinx-rtd-dark-mode = callPackage ../development/python-modules/sphinx-rtd-dark-mode { };
  sphinx-rtd-theme = callPackage ../development/python-modules/sphinx-rtd-theme { };