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

* gnu/packages/check.scm (python-pytest-asyncio): Update to 0.17.2.
[arguments]: Specify setuptools-scm version.  Replace check phase.
[native-inputs]: Remove PYTHON-COVERAGE.  Add PYTHON-FLAKY and
PYTHON-SETUPTOOLS-SCM.
* gnu/packages/python-xyz.scm (python-tqdm, python-watchgod)[arguments]:
Specify asyncio_mode when running tests.
This commit is contained in:
Marius Bakke 2022-01-21 20:36:25 +01:00
parent b62737097c
commit 8830d9f900
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
2 changed files with 22 additions and 6 deletions

View file

@ -1789,7 +1789,7 @@ (define-public python2-coverage
(define-public python-pytest-asyncio
(package
(name "python-pytest-asyncio")
(version "0.15.1")
(version "0.17.2")
(source
(origin
(method git-fetch) ;for tests
@ -1798,11 +1798,24 @@ (define-public python-pytest-asyncio
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03drs4myv1ik79148xyhli37q6mp931jb14cz65n8qvls2zvvwgx"))))
(base32 "0sl0ckc23m40q6r2xcidsizrgqbbsfa7rwmr80fss359xsydf073"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'pretend-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
#$(package-version this-package))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(invoke "pytest" "-vv" "tests"))))))
(native-inputs
(list python-coverage python-async-generator python-hypothesis
python-pytest))
(list python-async-generator
python-flaky
python-hypothesis
python-pytest
python-setuptools-scm))
(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

View file

@ -20227,7 +20227,9 @@ (define-public python-tqdm
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv" "-k" "not perf"))))))
(invoke "pytest" "-vv"
"-o" "asyncio_mode=auto"
"-k" "not perf"))))))
(native-inputs
(list python-pytest python-pytest-asyncio python-pytest-timeout
python-setuptools-scm python-toml))
@ -24884,7 +24886,8 @@ (define-public python-watchgod
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(invoke "pytest" "-vv"
"-o" "asyncio_mode=auto")))))))
(native-inputs
(list python-coverage
python-pygments