1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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>
This commit is contained in:
Nicolas Graves
2026-01-27 11:31:33 +01:00
committed by Andreas Enge
parent 9d57566793
commit 71b2d17d20

View File

@@ -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.