From 93001fcbd01b623ce168215231e07a4477f28b30 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 10 Jan 2026 15:02:00 +0000 Subject: [PATCH] gnu: python-sphinx-autodoc-typehints: Update to 2.3.0. * gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): Update to 2.3.0. [arguments] : Rework skpped tests. [native-inputs]: Remove nss-certs-for-test and python-nptyping. Change-Id: Iaf7fbcf27dd4334c04acaf0efec27e0d3f140b82 Signed-off-by: Rutherther --- gnu/packages/sphinx.scm | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index f58c667f4e3985135c58b71997593f3d9f92b60e..8a1adebf4c236d10858680320cf4a037f53430df 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1248,40 +1248,34 @@ enabled web server.") (define-public python-sphinx-autodoc-typehints (package (name "python-sphinx-autodoc-typehints") - (version "1.25.3") + (version "2.3.0") (source (origin - (method git-fetch) ;no tests in pypi archive + (method git-fetch) (uri (git-reference - (url "https://github.com/tox-dev/sphinx-autodoc-typehints") - (commit version))) + (url "https://github.com/tox-dev/sphinx-autodoc-typehints") + (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 - "1pw9dzxrq67m0x92c0v4zqmf8llkaiw2j2plqj6n7kcravg26n6v")))) + (base32 "0193svyx6g9lf50ydrqp5mrr078b7hncrzp0ysyjay91qghyl4gy")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 226 passed, 89 deselected, 15622 warnings #:test-flags - #~(list "-k" - ;; This test requires to download an objects.inv file - ;; from the Sphinx website. - (string-append "not test_format_annotation" - ;; XXX: Trailing -- missing. - " and not test_always_document_param_types")) + ;; This test requires to download an objects.inv file from the Sphinx + ;; website. + #~(list "--deselect=tests/test_sphinx_autodoc_typehints.py::test_format_annotation" + ;; Assertions are not equal. + "--deselect=tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union") #:phases #~(modify-phases %standard-phases - (add-before 'build 'pretend-version - ;; The version string is usually derived via setuptools-scm, but - ;; without the git metadata available, the version string is set to - ;; '0.0.0'. + (add-before 'build 'set-version (lambda _ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (native-inputs - (list nss-certs-for-test - python-hatch-vcs + (list python-hatch-vcs python-hatchling - python-nptyping python-pytest python-setuptools-scm python-sphobjinv))