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

commit 07b5e5e85b5c0b82c36c4ccd27915f67677a5c3b
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jan 27 11:31:33 2026 +0100

    gnu: python-pytest-textual-snapshot: Relax requirements.
    
    * gnu/packages/python-check.scm (python-pytest-textual-snapshot)
    [source]: Switch to git-fetch.
    [arguments]<#:phases>: Add phase 'relax-requirements.
    
    Change-Id: I41c3df3ac6fc9154c85bb05d93da1d22ecf85a50
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-check.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 14ef77a6c8..9d5b42bc20 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -4205,16 +4205,24 @@ support and @code{subtests} fixture.")
     (version "1.1.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "pytest_textual_snapshot" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/Textualize/pytest-textual-snapshot";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1ss4hm2xgxx07qn9s7p9fykzvmzxsl4g0rg198xjm1862fq8mm4n"))))
+        (base32 "16zwybmjw16pxcm9qdql14xh3fj4iwry8r219yzjd5z7w1l31p12"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:tests? #f ; no tests in PyPI or Git
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("syrupy = .*")
+                 "syrupy = \"*\"\n"))))
           (add-after 'unpack 'patch-path
             (lambda _
               ;; Taken from NixOS package definition.

Reply via email to