guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 892f80e463b925c1d295c4f3c913bd2f03168212
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Jan 17 21:01:24 2026 +0100
gnu: python-pytest-asyncio: Switch to git-fetch.
* gnu/packages/check.scm (python-pytest-asyncio):
[source]: Switch to git-fetch.
[arguments]<#:phases>: Add phase 'set-version.
Change-Id: I448406ec79ceca892a1204a948ce2b91a573114b
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/check.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 0b012a4aca..ad8e12b0f6 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2482,10 +2482,13 @@ executed.")
(version "1.3.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pytest_asyncio" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pytest-dev/pytest-asyncio")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1rg97r6s655hqq9m028hzila36in37xny8fd4khhxf1is8v2zxfp"))))
+ (base32 "02ibw934ppy66vkjc9ihwc5zp66pbzcsqg0irf7gnxpi9ck8qqii"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -2499,7 +2502,12 @@ executed.")
"trigger_warning_about_no_current_"
"event_loop_being_set")
"test_warns_when_scope_argument_is_present")
- " and not "))))
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-setuptools
python-setuptools-scm))