python3Packages.sphinx-multiversion: init at version 0.2.4

This commit is contained in:
Karel Kočí 2024-05-14 09:46:15 +02:00
parent f399f43a39
commit 24b73ab429
No known key found for this signature in database
GPG Key ID: DCEF0A0E5D0379F3
2 changed files with 38 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };