[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
108/204: gnu: python-anyio: Update to 3.5.0.
From: |
guix-commits |
Subject: |
108/204: gnu: python-anyio: Update to 3.5.0. |
Date: |
Wed, 20 Apr 2022 02:03:29 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit ba7bde51f40f7c9fd33f5a00bad8c964ff5a1d02
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 13 10:36:21 2022 -0400
gnu: python-anyio: Update to 3.5.0.
* gnu/packages/python-xyz.scm (python-anyio): Update to 3.5.0.
[phases]{fix-compatibility}: Delete phase.
{check}: Remove add-installed-pythonpath call. Expound comment about IPv6
issues. Skip the 'test_unretrieved_future_exception_server_crash' test.
[native-inputs]: Remove python-iniconfig. Use regular python-pytest.
Replace
python-pytest-trio by python-trio.
---
gnu/packages/python-xyz.scm | 88 +++++++++++++++++++++------------------------
1 file changed, 41 insertions(+), 47 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b22cc0d9d9..c4889f61f4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25498,73 +25498,67 @@ standard error channel (stderr) in your program.")
(define-public python-anyio
(package
(name "python-anyio")
- (version "3.3.0")
+ (version "3.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "anyio" version))
(sha256
(base32
- "0x03hsprdrs86wjjkj96zm2jswy3a5bgyrknyi58pzz5hdsscmxf"))))
+ "19m58805wir4i2s45dd5ynwlzb7ky1218isbir53gpqzzgigzbm0"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'fix-compatibility
- (lambda _
- (substitute* "tests/test_taskgroups.py"
- (("import pytest")
- "import pytest\nimport _pytest\nfrom _pytest import logging")
- (("pytest.LogCaptureFixture")
- "_pytest.logging.LogCaptureFixture"))))
(replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv" "-p" "no:asyncio"
- "-m" "not network"
- "-k"
- (string-append
- "not test_is_block_device"
-
- ;; These fail because of network (or specifically
- ;; IPv6 network) access.
- " and not test_accept"
- " and not test_accept_after_close"
- " and not test_close_during_receive"
- " and not test_close_from_other_task"
- " and not test_concurrent_receive"
- " and not test_concurrent_send"
- " and not test_connect_tcp_with_tls"
- " and not test_connect_tcp_with_tls_cert_check_fail"
- " and not test_connection_refused"
- " and not test_extra_attributes"
- " and not test_getaddrinfo"
- " and not test_getnameinfo"
- " and not test_happy_eyeballs"
- " and not test_iterate"
- " and not test_receive_after_close"
- " and not test_receive_timeout"
- " and not test_reuse_port"
- " and not test_run_process"
- " and not test_send_after_close"
- " and not test_send_after_eof"
- " and not test_send_after_peer_closed"
- " and not test_send_eof"
- " and not test_send_large_buffer"
- " and not test_send_receive"
- " and not test_socket_options"))))))))
+ (invoke
+ "pytest" "-vv" "-p" "no:asyncio"
+ "-m" "not network"
+ "-k"
+ (string-append
+ "not test_is_block_device"
+
+ ;; These fail because of network (or specifically IPv6
+ ;; network) access (see:
+ ;; https://github.com/agronholm/anyio/issues/417).
+ " and not test_accept"
+ " and not test_accept_after_close"
+ " and not test_close_during_receive"
+ " and not test_close_from_other_task"
+ " and not test_concurrent_receive"
+ " and not test_concurrent_send"
+ " and not test_connect_tcp_with_tls"
+ " and not test_connect_tcp_with_tls_cert_check_fail"
+ " and not test_connection_refused"
+ " and not test_extra_attributes"
+ " and not test_getaddrinfo"
+ " and not test_getnameinfo"
+ " and not test_happy_eyeballs"
+ " and not test_iterate"
+ " and not test_receive_after_close"
+ " and not test_receive_timeout"
+ " and not test_reuse_port"
+ " and not test_run_process"
+ " and not test_send_after_close"
+ " and not test_send_after_eof"
+ " and not test_send_after_peer_closed"
+ " and not test_send_eof"
+ " and not test_send_large_buffer"
+ " and not test_send_receive"
+ " and not test_socket_options"
+ " and not
test_unretrieved_future_exception_server_crash"))))))))
(propagated-inputs
(list python-idna python-sniffio python-typing-extensions))
(native-inputs
(list python-coverage
python-hypothesis
- python-iniconfig
python-mock
- python-pytest-6
+ python-pytest
python-pytest-mock
- python-pytest-trio
python-setuptools-scm
+ python-trio
python-trustme
python-uvloop))
(home-page "https://github.com/agronholm/anyio")
- 132/204: gnu: Add python-cbor2., (continued)
- 132/204: gnu: Add python-cbor2., guix-commits, 2022/04/20
- 139/204: gnu: python-sqlalchemy: Run tests in parallel via xdist., guix-commits, 2022/04/20
- 133/204: gnu: python-httpcore: Update to 0.14.7 and enable tests., guix-commits, 2022/04/20
- 156/204: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/04/20
- 176/204: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/04/20
- 188/204: gnu: Remove python2-jmespath., guix-commits, 2022/04/20
- 189/204: gnu: python-croniter: Update to 1.3.4., guix-commits, 2022/04/20
- 195/204: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/04/20
- 70/204: gnu: python-pytest-shutil: Adjust to use python-path., guix-commits, 2022/04/20
- 90/204: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/20
- 108/204: gnu: python-anyio: Update to 3.5.0.,
guix-commits <=
- 143/204: gnu: python-fakeredis: Update to 1.7.1., guix-commits, 2022/04/20
- 145/204: gnu: Add python-dictpath., guix-commits, 2022/04/20
- 146/204: gnu: Add python-openapi-core., guix-commits, 2022/04/20
- 147/204: gnu: Add python-jupyterlab-server., guix-commits, 2022/04/20
- 148/204: gnu: python-hypothesis-6.23: Update to 6.43.3., guix-commits, 2022/04/20
- 93/204: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/20
- 101/204: gnu: Add python-ipyparallel-bootstrap., guix-commits, 2022/04/20
- 111/204: gnu: Add texlive-unicode-math., guix-commits, 2022/04/20
- 114/204: gnu: Add python-jupyter-server-mathjax., guix-commits, 2022/04/20
- 115/204: gnu: python-nbval: Fix build., guix-commits, 2022/04/20