Skip to content

Commit

Permalink
python3Packages.sphinx-favicon: init at 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Jan 5, 2025
1 parent b00f004 commit b19212c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/sphinx-favicon/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit b19212c

Please sign in to comment.