summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-01-10 15:02:00 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:22:33 +0100
commit93001fcbd01b623ce168215231e07a4477f28b30 (patch)
treeecb31470cd9d9817179f402b3ab160b77c5da4a4 /gnu/packages
parent069fdefec8eae36f33887530e05c31d53e2db4b7 (diff)
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 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/sphinx.scm32
1 files changed, 13 insertions, 19 deletions
diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm
index f58c667f4e3..8a1adebf4c2 100644
--- a/gnu/packages/sphinx.scm
+++ b/gnu/packages/sphinx.scm
@@ -1248,40 +1248,34 @@ enabled web server.")
1248(define-public python-sphinx-autodoc-typehints 1248(define-public python-sphinx-autodoc-typehints
1249 (package 1249 (package
1250 (name "python-sphinx-autodoc-typehints") 1250 (name "python-sphinx-autodoc-typehints")
1251 (version "1.25.3") 1251 (version "2.3.0")
1252 (source 1252 (source
1253 (origin 1253 (origin
1254 (method git-fetch) ;no tests in pypi archive 1254 (method git-fetch)
1255 (uri (git-reference 1255 (uri (git-reference
1256 (url "https://github.com/tox-dev/sphinx-autodoc-typehints") 1256 (url "https://github.com/tox-dev/sphinx-autodoc-typehints")
1257 (commit version))) 1257 (commit version)))
1258 (file-name (git-file-name name version)) 1258 (file-name (git-file-name name version))
1259 (sha256 1259 (sha256
1260 (base32 1260 (base32 "0193svyx6g9lf50ydrqp5mrr078b7hncrzp0ysyjay91qghyl4gy"))))
1261 "1pw9dzxrq67m0x92c0v4zqmf8llkaiw2j2plqj6n7kcravg26n6v"))))
1262 (build-system pyproject-build-system) 1261 (build-system pyproject-build-system)
1263 (arguments 1262 (arguments
1264 (list 1263 (list
1264 ;; tests: 226 passed, 89 deselected, 15622 warnings
1265 #:test-flags 1265 #:test-flags
1266 #~(list "-k" 1266 ;; This test requires to download an objects.inv file from the Sphinx
1267 ;; This test requires to download an objects.inv file 1267 ;; website.
1268 ;; from the Sphinx website. 1268 #~(list "--deselect=tests/test_sphinx_autodoc_typehints.py::test_format_annotation"
1269 (string-append "not test_format_annotation" 1269 ;; Assertions are not equal.
1270 ;; XXX: Trailing -- missing. 1270 "--deselect=tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union")
1271 " and not test_always_document_param_types"))
1272 #:phases 1271 #:phases
1273 #~(modify-phases %standard-phases 1272 #~(modify-phases %standard-phases
1274 (add-before 'build 'pretend-version 1273 (add-before 'build 'set-version
1275 ;; The version string is usually derived via setuptools-scm, but
1276 ;; without the git metadata available, the version string is set to
1277 ;; '0.0.0'.
1278 (lambda _ 1274 (lambda _
1279 (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) 1275 (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
1280 (native-inputs 1276 (native-inputs
1281 (list nss-certs-for-test 1277 (list python-hatch-vcs
1282 python-hatch-vcs
1283 python-hatchling 1278 python-hatchling
1284 python-nptyping
1285 python-pytest 1279 python-pytest
1286 python-setuptools-scm 1280 python-setuptools-scm
1287 python-sphobjinv)) 1281 python-sphobjinv))