gnu: python-pytest-asyncio: Update to 0.21.0.

* gnu/packages/check.scm (python-pytest-asyncio): Update to 0.21.0.
[build-system]: Use pyproject-build-system.
[arguments]: Set #:tests? to #f.  Remove check phase override.
[native-inputs]: Remove now unused python-async-generator, python-flaky,
python-hypothesis and python-pytest.
[propagated-inputs]: Add python-pytest.
This commit is contained in:
Maxim Cournoyer 2023-04-17 09:42:51 -04:00
parent 5ae2e2ce9a
commit e27acc6fc7
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2031,7 +2031,7 @@ (define-public python-coverage
(define-public python-pytest-asyncio (define-public python-pytest-asyncio
(package (package
(name "python-pytest-asyncio") (name "python-pytest-asyncio")
(version "0.17.2") (version "0.21.0")
(source (source
(origin (origin
(method git-fetch) ;for tests (method git-fetch) ;for tests
@ -2040,24 +2040,18 @@ (define-public python-pytest-asyncio
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0sl0ckc23m40q6r2xcidsizrgqbbsfa7rwmr80fss359xsydf073")))) (base32 "03wljn0gdwyfr5s1795w3h2mfvvi23bn42nwjv5568rgphqyldqq"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list #:tests? #f ;XXX: to avoid a cycle with python-pytest-trio
#:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'pretend-version (add-after 'unpack 'pretend-version
(lambda _ (lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
#$(package-version this-package)))) #$(package-version this-package)))))))
(replace 'check (native-inputs (list python-setuptools-scm))
(lambda* (#:key tests? #:allow-other-keys) (propagated-inputs (list python-pytest))
(invoke "pytest" "-vv" "tests"))))))
(native-inputs
(list python-async-generator
python-flaky
python-hypothesis
python-pytest
python-setuptools-scm))
(home-page "https://github.com/pytest-dev/pytest-asyncio") (home-page "https://github.com/pytest-dev/pytest-asyncio")
(synopsis "Pytest support for asyncio") (synopsis "Pytest support for asyncio")
(description "Python asyncio code is usually written in the form of (description "Python asyncio code is usually written in the form of