From dd9632d2227e5d5d2bc205f208c05231d00383f1 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 1 Jul 2022 04:20:00 +0000 Subject: [PATCH] python310Packages.sphinx-external-toc: init at 0.3.0 --- .../sphinx-external-toc/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/sphinx-external-toc/default.nix diff --git a/pkgs/development/python-modules/sphinx-external-toc/default.nix b/pkgs/development/python-modules/sphinx-external-toc/default.nix new file mode 100644 index 00000000000..009e4ef9c84 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-external-toc/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, flit-core +, click +, pyyaml +, sphinx +}: + +buildPythonPackage rec { + pname = "sphinx-external-toc"; + version = "0.3.0"; + + format = "flit"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit version; + pname = "sphinx_external_toc"; + sha256 = "73198636ada4b4f72f69c7bab09f0e4ce84978056dc5afa9ee51d287bec0a8ef"; + }; + + nativeBuildInputs = [ flit-core ]; + + propagatedBuildInputs = [ + click + pyyaml + sphinx + ]; + + pythonImportsCheck = [ "sphinx_external_toc" ]; + + meta = with lib; { + description = "A sphinx extension that allows the site-map to be defined in a single YAML file"; + homepage = "https://github.com/executablebooks/sphinx-external-toc"; + license = licenses.mit; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a63ea851a3e..f016e6d9c5f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9984,6 +9984,8 @@ in { sphinx-comments = callPackage ../development/python-modules/sphinx-comments { }; + sphinx-external-toc = callPackage ../development/python-modules/sphinx-external-toc { }; + sphinx-pytest = callPackage ../development/python-modules/sphinx-pytest { }; sphinx-togglebutton = callPackage ../development/python-modules/sphinx-togglebutton { };