From d93de53d8b8d60d7e9bca9b7c7850493b2f6a932 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Wed, 31 Dec 2025 23:30:20 +0100 Subject: [PATCH] gnu: python-sphinx-autoapi: Update to 3.6.1. * gnu/packages/sphinx.scm (python-sphinx-autoapi): Update to 3.6.1. [source]: Switch to git-fetch. [arguments]<#:test-flags>: Disable test that requires network. [propagated-inputs]: Remove python-unidecode. [native-inputs]: Remove python-setuptools, python-sphinx, and python-wheel; add nss-certs-for-test, python-beautifulsoup4, python-flit-core, and python-pytest. Change-Id: I7e3d71a71b2316953559cdd9cdc4ac8d157571f7 Signed-off-by: Sharlatan Hellseher --- gnu/packages/sphinx.scm | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 8a1adebf4c2..520b1bf05c1 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -1542,21 +1542,33 @@ community.") (define-public python-sphinx-autoapi (package (name "python-sphinx-autoapi") - (version "2.0.1") ;higher versions require Sphinx >= 5.2.0 - (source (origin - (method url-fetch) - (uri (pypi-uri "sphinx-autoapi" version)) - (sha256 - (base32 - "1fmss6ihjjx22nmjzy7qiapj1f2b86gd1vycn3zg8lh8q9l7kx6d")))) + (version "3.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/readthedocs/sphinx-autoapi") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "194qvzzlzdwb8vwv95adjzb81d2n1wi4q8d00m0vbqg5njzfp9vm")))) (build-system pyproject-build-system) - (native-inputs (list python-setuptools python-sphinx python-wheel)) + (arguments + (list + ;; tests: 318 passed, 1 skipped, 1 deselected + ;; Deselect test that requires internet connection. + #:test-flags + #~(list"-k" "not TestPipeUnionModule"))) + (native-inputs + (list nss-certs-for-test + python-beautifulsoup4 + python-flit-core + python-pytest)) (propagated-inputs (list python-astroid python-jinja2 python-pyyaml - python-sphinx - python-unidecode)) + python-sphinx)) (home-page "https://github.com/readthedocs/sphinx-autoapi") (synopsis "Sphinx API documentation generator") (description