From 71b2d17d20edd48c88c7bc019b2be3669f8412e0 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 27 Jan 2026 11:31:33 +0100 Subject: [PATCH] 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 --- 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.