[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/13: gnu: Add python-anyio.
From: |
guix-commits |
Subject: |
07/13: gnu: Add python-anyio. |
Date: |
Mon, 30 Aug 2021 12:50:50 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 5766296a166152c1e3e97f8a68dff9c9627ea4be
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Aug 29 20:46:50 2021 +0200
gnu: Add python-anyio.
* gnu/packages/python-xyz.scm (python-anyio): New variable.
---
gnu/packages/python-xyz.scm | 81 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5da58d3..5acd237 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23036,6 +23036,87 @@ bindings for Python 3.")
standard error channel (stderr) in your program.")
(license license:expat))))
+(define-public python-anyio
+ (package
+ (name "python-anyio")
+ (version "3.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "anyio" version))
+ (sha256
+ (base32
+ "0x03hsprdrs86wjjkj96zm2jswy3a5bgyrknyi58pzz5hdsscmxf"))))
+ (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)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv" "-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"))))))))
+ (propagated-inputs
+ `(("python-idna" ,python-idna)
+ ("python-sniffio" ,python-sniffio)
+ ("python-typing-extensions" ,python-typing-extensions)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-hypothesis" ,python-hypothesis)
+ ("python-iniconfig" ,python-iniconfig)
+ ("python-mock" ,python-mock)
+ ("python-pytest" ,python-pytest-6)
+ ("python-pytest-mock" ,python-pytest-mock-3)
+ ("python-pytest-trio" ,python-pytest-trio)
+ ("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-trustme" ,python-trustme)
+ ("python-uvloop" ,python-uvloop)))
+ (home-page "https://github.com/agronholm/anyio")
+ (synopsis "Compatibility layer for multiple asynchronous event loops")
+ (description
+ "AnyIO is an asynchronous networking and concurrency library that works
+on top of either asyncio or trio. It implements trio-like structured
+concurrency on top of asyncio, and works in harmony with the native SC of trio
+itself.")
+ (license license:expat)))
+
(define-public python-argh
;; There are 21 commits since the latest release containing important
;; improvements.
- branch master updated (b8926ca -> 7712154), guix-commits, 2021/08/30
- 01/13: gnu: Add python-pybbi., guix-commits, 2021/08/30
- 02/13: gnu: Add python-svgutils., guix-commits, 2021/08/30
- 04/13: gnu: Add python-pytest-console-scripts., guix-commits, 2021/08/30
- 06/13: gnu: Add python-pytest-mock-3., guix-commits, 2021/08/30
- 08/13: gnu: Add python-jupyter-server., guix-commits, 2021/08/30
- 07/13: gnu: Add python-anyio.,
guix-commits <=
- 05/13: gnu: Add python-pytest-tornasync., guix-commits, 2021/08/30
- 12/13: gnu: Add python-voila., guix-commits, 2021/08/30
- 03/13: gnu: Add python-dna-features-viewer., guix-commits, 2021/08/30
- 09/13: gnu: python-scanpy: Update to 1.8.1., guix-commits, 2021/08/30
- 10/13: gnu: python-anndata: Fetch sources from git., guix-commits, 2021/08/30
- 11/13: gnu: python-scikit-learn: Update to 0.24.2., guix-commits, 2021/08/30
- 13/13: gnu: Add python-coolbox., guix-commits, 2021/08/30