guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit 6e800cac93ac45e7292831bdc3cb4d9b50cd1e49
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 10 15:02:00 2026 +0000

    gnu: python-sphinx-autodoc-typehints: Update to 2.3.0.
    
    * gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints): Update to 
2.3.0.
    [arguments] <test-flags>: Rework skpped tests.
    [native-inputs]: Remove nss-certs-for-test and python-nptyping.
    
    Change-Id: Iaf7fbcf27dd4334c04acaf0efec27e0d3f140b82
---
 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 3f9d72f496..c39e562a8c 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))

Reply via email to