From 24b73ab429998e7b9227001a0605054d66d3fff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 14 May 2024 09:46:15 +0200 Subject: [PATCH] python3Packages.sphinx-multiversion: init at version 0.2.4 --- .../sphinx-multiversion/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/sphinx-multiversion/default.nix diff --git a/pkgs/development/python-modules/sphinx-multiversion/default.nix b/pkgs/development/python-modules/sphinx-multiversion/default.nix new file mode 100644 index 000000000000..754f8038cc59 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-multiversion/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, sphinx +, setuptools +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "sphinx-multiversion"; + version = "0.2.4"; + + disabled = pythonOlder "3.7"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "sphinx-multiversion"; + hash = "sha256-XNHKnste7WPLjWzl6cQ4yhOvT6mOfrbzdr5UHdSZC8s="; + }; + + build-system = [ setuptools ]; + dependencies = [ sphinx ]; + nativeCheckInputs = [ unittestCheckHook ]; + + pythonImportsCheck = [ "sphinx_multiversion" ]; + + meta = with lib; { + description = "Sphinx extension for building self-hosted versioned docs."; + homepage = "https://holzhaus.github.io/sphinx-multiversion"; + changelog = "https://github.com/Holzhaus/sphinx-multiversion/releases/tag/v${version}"; + license = licenses.bsd2; + maintainers = with maintainers; [ cynerd ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 52ea9be85bb1..0f39bb796745 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14280,6 +14280,8 @@ self: super: with self; { sphinx-multitoc-numbering = callPackage ../development/python-modules/sphinx-multitoc-numbering { }; + sphinx-multiversion = callPackage ../development/python-modules/sphinx-multiversion { }; + sphinx-notfound-page = callPackage ../development/python-modules/sphinx-notfound-page { }; sphinx-pytest = callPackage ../development/python-modules/sphinx-pytest { };