python3Packages.sphinx-favicon: init at 1.0.1

This commit is contained in:
Alex Martens
2025-01-04 20:03:12 -08:00
parent b00f0047f0
commit b19212c61f
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
sphinx,
pytestCheckHook,
beautifulsoup4,
}:
buildPythonPackage rec {
pname = "sphinx-favicon";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tcmetzger";
repo = "sphinx-favicon";
tag = "v${version}";
hash = "sha256-Arcjj+6WWuSfufh8oqrDyAtjp07j1JEuw2YlmFcfL3U=";
};
build-system = [
setuptools
];
dependencies = [
sphinx
];
nativeCheckInputs = [
pytestCheckHook
];
checkInputs = [
beautifulsoup4
];
disabledTests = [
# requires network to download favicons
"test_list_of_three_icons_automated_values"
];
pythonImportsCheck = [ "sphinx_favicon" ];
meta = {
description = "Sphinx extension to add custom favicons";
homepage = "https://github.com/tcmetzger/sphinx-favicon";
changelog = "https://github.com/tcmetzger/sphinx-favicon/blob/v${version}/CHANGELOG";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.newam ];
};
}

View File

@@ -15179,6 +15179,8 @@ self: super: with self; {
sphinx-external-toc = callPackage ../development/python-modules/sphinx-external-toc { };
sphinx-favicon = callPackage ../development/python-modules/sphinx-favicon { };
sphinx-fortran = callPackage ../development/python-modules/sphinx-fortran { };
sphinx-hoverxref = callPackage ../development/python-modules/sphinx-hoverxref { };