1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 sphinx, 7 pytestCheckHook, 8 beautifulsoup4, 9}: 10 11buildPythonPackage rec { 12 pname = "sphinx-favicon"; 13 version = "1.0.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "tcmetzger"; 18 repo = "sphinx-favicon"; 19 tag = "v${version}"; 20 hash = "sha256-Arcjj+6WWuSfufh8oqrDyAtjp07j1JEuw2YlmFcfL3U="; 21 }; 22 23 build-system = [ 24 setuptools 25 ]; 26 27 dependencies = [ 28 sphinx 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 checkInputs = [ 36 beautifulsoup4 37 ]; 38 39 disabledTests = [ 40 # requires network to download favicons 41 "test_list_of_three_icons_automated_values" 42 ]; 43 44 pythonImportsCheck = [ "sphinx_favicon" ]; 45 46 meta = { 47 description = "Sphinx extension to add custom favicons"; 48 homepage = "https://github.com/tcmetzger/sphinx-favicon"; 49 changelog = "https://github.com/tcmetzger/sphinx-favicon/blob/v${version}/CHANGELOG"; 50 license = lib.licenses.mit; 51 maintainers = [ lib.maintainers.newam ]; 52 }; 53}