diff --git a/pkgs/development/python-modules/sphinx-togglebutton/default.nix b/pkgs/development/python-modules/sphinx-togglebutton/default.nix new file mode 100644 index 00000000000..b524e8a1b85 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-togglebutton/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, wheel +, sphinx +, docutils +}: + +buildPythonPackage rec { + pname = "sphinx-togglebutton"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1f13c25c27a8ff40d6fc924d324746c0adb0dedeef40730c8a8b64ff55c6c92c"; + }; + + propagatedBuildInputs = [ wheel sphinx docutils ]; + + pythonImportsCheck = [ "sphinx_togglebutton" ]; + + meta = with lib; { + description = "Toggle page content and collapse admonitions in Sphinx"; + homepage = "https://github.com/executablebooks/sphinx-togglebutton"; + license = licenses.mit; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 59c7de56151..3dfbe0144b6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9982,6 +9982,8 @@ in { sphinx-pytest = callPackage ../development/python-modules/sphinx-pytest { }; + sphinx-togglebutton = callPackage ../development/python-modules/sphinx-togglebutton { }; + sphinxcontrib-actdiag = callPackage ../development/python-modules/sphinxcontrib-actdiag { }; sphinxcontrib-apidoc = callPackage ../development/python-modules/sphinxcontrib-apidoc { };