summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-01-27 11:31:33 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:45 +0100
commit71b2d17d20edd48c88c7bc019b2be3669f8412e0 (patch)
treed34386726a837ce7e97328403c08cade3d7fce45 /gnu/packages
parent9d57566793db22c9db57d500b344634e89afc733 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-check.scm14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 14ef77a6c86..9d5b42bc20a 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.