guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 9690f48b40ab4f06715b0dc1220e81f14a5de97f
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Wed Jul 16 22:47:36 2025 +0100

    gnu: python-pytest-checkdocs: Update to 2.10.0.
    
    * gnu/packages/python-check.scm (python-pytest-checkdocs): Update to 2.10.0.
      [source]: Switch to git-fetch, PyPI provides only the latest version
      of source packge where we need older compatible with
      python-pypa-build.
      [arguments] <phases>: Add 'set-version.
      [propagated-inputs]: Remove python-importlib-metadata, python-pep517,
      and python-pytest; add python-pypa-build.
      [native-inputs]: Add python-pytest-bootstrap and python-wheel.
    
    Change-Id: I414b8538cb143c94dc7f5c5c5b5db56a56e97c14
---
 gnu/packages/python-check.scm | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 197ae2be92..65b6d5302b 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1916,21 +1916,32 @@ failures per test.")
 (define-public python-pytest-checkdocs
   (package
     (name "python-pytest-checkdocs")
-    (version "2.7.1")
+    (version "2.10.0")  ;PyPI contains only the latest version
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pytest-checkdocs" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/jaraco/pytest-checkdocs";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1bn1wr3yz8avkwacffyh26za7mg20f9pajpakfk4cn7yvmgbhcrb"))))
-    (build-system python-build-system)
-    (arguments (list #:tests? #f))      ;no tests in pypi archive
+        (base32 "1amw07skzfwy88dqvcsh308lcds7avyyja0qzdqrk4739cm1g0vh"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f ;tests require network access
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-version
+            (lambda _
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-pytest-bootstrap
+           python-setuptools-scm
+           python-wheel))
     (propagated-inputs
      (list python-docutils
-           python-importlib-metadata
-           python-pep517
-           python-pytest))
-    (native-inputs (list python-setuptools-scm))
+           python-pypa-build))
     (home-page "https://github.com/jaraco/pytest-checkdocs";)
     (synopsis "Check the README when running tests")
     (description

Reply via email to