diff options
Diffstat (limited to 'pkgs/development/python-modules/sphinx/default.nix')
-rw-r--r-- | pkgs/development/python-modules/sphinx/default.nix | 183 |
1 files changed, 93 insertions, 90 deletions
diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index 43b7ebcd99ee9..e781abafac194 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -1,42 +1,44 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchFromGitHub -, isPyPy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + isPyPy, -# nativeBuildInputs -, flit-core + # build-system + flit-core, -# propagatedBuildInputs -, babel -, alabaster -, docutils -, imagesize -, importlib-metadata -, jinja2 -, packaging -, pygments -, requests -, snowballstemmer -, sphinxcontrib-applehelp -, sphinxcontrib-devhelp -, sphinxcontrib-htmlhelp -, sphinxcontrib-jsmath -, sphinxcontrib-qthelp -, sphinxcontrib-serializinghtml -, sphinxcontrib-websupport + # dependencies + babel, + alabaster, + docutils, + imagesize, + importlib-metadata, + jinja2, + packaging, + pygments, + requests, + snowballstemmer, + sphinxcontrib-applehelp, + sphinxcontrib-devhelp, + sphinxcontrib-htmlhelp, + sphinxcontrib-jsmath, + sphinxcontrib-qthelp, + sphinxcontrib-serializinghtml, + sphinxcontrib-websupport, + tomli, -# check phase -, filelock -, html5lib -, pytestCheckHook -, pytest-xdist + # check phase + defusedxml, + filelock, + html5lib, + pytestCheckHook, + pytest-xdist, }: buildPythonPackage rec { pname = "sphinx"; - version = "7.2.6"; + version = "7.3.7"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -51,38 +53,38 @@ buildPythonPackage rec { mv tests/roots/test-images/{testimäge,testimæge}.png sed -i 's/testimäge/testimæge/g' tests/{test_build*.py,roots/test-images/index.rst} ''; - hash = "sha256-IjpRGeGpGfzrEvwIKtuu2l1S74w8W+AbqDOGnWwtRck="; + hash = "sha256-XGGRWEvd1SbQsK8W5yxDzBd5hlvXcDzr8t5Qa6skH/M="; }; - nativeBuildInputs = [ - flit-core - ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ - alabaster - babel - docutils - imagesize - jinja2 - packaging - pygments - requests - snowballstemmer - sphinxcontrib-applehelp - sphinxcontrib-devhelp - sphinxcontrib-htmlhelp - sphinxcontrib-jsmath - sphinxcontrib-qthelp - sphinxcontrib-serializinghtml - # extra[docs] - sphinxcontrib-websupport - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + dependencies = + [ + alabaster + babel + docutils + imagesize + jinja2 + packaging + pygments + requests + snowballstemmer + sphinxcontrib-applehelp + sphinxcontrib-devhelp + sphinxcontrib-htmlhelp + sphinxcontrib-jsmath + sphinxcontrib-qthelp + sphinxcontrib-serializinghtml + # extra[docs] + sphinxcontrib-websupport + ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; __darwinAllowLocalNetworking = true; nativeCheckInputs = [ + defusedxml filelock html5lib pytestCheckHook @@ -93,39 +95,40 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # requires network access - "test_latex_images" - # racy - "test_defaults" - "test_check_link_response_only" - "test_anchors_ignored_for_url" - "test_autodoc_default_options" - "test_too_many_requests_retry_after_int_delay" - # racy with pytest-xdist - "test_domain_cpp_build_semicolon" - "test_class_alias" - "test_class_alias_having_doccomment" - "test_class_alias_for_imported_object_having_doccomment" - "test_decorators" - # requires cython_0, but fails miserably on 3.11 - "test_cython" - ] ++ lib.optionals isPyPy [ - # PyPy has not __builtins__ which get asserted - # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous - "test_autosummary_generate_content_for_module" - "test_autosummary_generate_content_for_module_skipped" - # internals are asserted which are sightly different in PyPy - "test_autodoc_inherited_members_None" - "test_automethod_for_builtin" - "test_builtin_function" - "test_isattributedescriptor" - "test_methoddescriptor" - "test_partialfunction" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/sphinx-doc/sphinx/issues/12202 (Fixed in 7.3) - "test_enum_class" - ]; + disabledTests = + [ + # requires network access + "test_latex_images" + # racy + "test_defaults" + "test_check_link_response_only" + "test_anchors_ignored_for_url" + "test_autodoc_default_options" + "test_too_many_requests_retry_after_int_delay" + # racy with pytest-xdist + "test_domain_cpp_build_semicolon" + "test_class_alias" + "test_class_alias_having_doccomment" + "test_class_alias_for_imported_object_having_doccomment" + "test_decorators" + # requires cython_0, but fails miserably on 3.11 + "test_cython" + # Could not fetch remote image: http://localhost:7777/sphinx.png + "test_copy_images" + ] + ++ lib.optionals isPyPy [ + # PyPy has not __builtins__ which get asserted + # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous + "test_autosummary_generate_content_for_module" + "test_autosummary_generate_content_for_module_skipped" + # internals are asserted which are sightly different in PyPy + "test_autodoc_inherited_members_None" + "test_automethod_for_builtin" + "test_builtin_function" + "test_isattributedescriptor" + "test_methoddescriptor" + "test_partialfunction" + ]; meta = { description = "Python documentation generator"; |