sharlatan pushed a commit to branch python-team
in repository guix.
commit 09d6f6ef2e5c66d81c1322c004a6006a9d497f26
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Nov 22 11:07:34 2024 +0000
gnu: python-pytest-asyncio: Update to 0.24.0.
* gnu/packages/check.scm (python-pytest-asyncio): Update to 0.24.0.
[source]: Swap to PyPI tarball as a fresh release contains tests.
[arguments]<tests>: Enable them.
<phases>: Remove 'pretend-version phase.
Change-Id: I67f11641fba485a94f5617292a4d75ec25af8420
---
gnu/packages/check.scm | 27 ++++++++++-----------------
1 file changed, 10 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 32f8249d2d..2f6772ecf9 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2471,27 +2471,20 @@ executed.")
(define-public python-pytest-asyncio
(package
(name "python-pytest-asyncio")
- (version "0.21.0")
+ (version "0.24.0")
(source
(origin
- (method git-fetch) ;for tests
- (uri (git-reference
- (url "https://github.com/pytest-dev/pytest-asyncio")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri (pypi-uri "pytest_asyncio" version))
(sha256
- (base32 "03wljn0gdwyfr5s1795w3h2mfvvi23bn42nwjv5568rgphqyldqq"))))
+ (base32 "0xmj8rndpv9gmwpilbfpc26sdy1bx60l46craf3mzn3nwlldi0fh"))))
(build-system pyproject-build-system)
- (arguments
- (list #:tests? #f ;XXX: to avoid a cycle with python-pytest-trio
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'pretend-version
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
- #$(package-version this-package)))))))
- (native-inputs (list python-setuptools-scm python-setuptools python-wheel))
- (propagated-inputs (list python-pytest))
+ (native-inputs
+ (list python-setuptools-scm
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-pytest))
(home-page "https://github.com/pytest-dev/pytest-asyncio")
(synopsis "Pytest support for asyncio")
(description "Python asyncio code is usually written in the form of