From 7fd0b73989e5f30b96798f5778cf265aae5bb579 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 22 Nov 2024 11:07:34 +0000 Subject: [PATCH] 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]: Enable them. : 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 ac08830fd581f385ccd1510abdda208c919a10d4..83996f5e6b6b8bc3cbf71506171efeebe1c03628 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