[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
241/377: gnu: Add python-anyio.
From: |
guix-commits |
Subject: |
241/377: gnu: Add python-anyio. |
Date: |
Thu, 2 Sep 2021 17:55:44 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
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.
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime., (continued)
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime., guix-commits, 2021/09/02
- 230/377: build-system: chicken: Add 'egg-uri' procedure., guix-commits, 2021/09/02
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/02
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/02
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling., guix-commits, 2021/09/02
- 215/377: services: Remove i486 qemu target., guix-commits, 2021/09/02
- 248/377: build/jami-service: Fix range ends in account-fingerprint-rx., guix-commits, 2021/09/02
- 242/377: gnu: Add python-jupyter-server., guix-commits, 2021/09/02
- 246/377: gnu: Add python-voila., guix-commits, 2021/09/02
- 240/377: gnu: Add python-pytest-mock-3., guix-commits, 2021/09/02
- 241/377: gnu: Add python-anyio.,
guix-commits <=
- 259/377: gnu: glib-with-documentation: Fix documentation build., guix-commits, 2021/09/02
- 255/377: gnu: glib: Update to 2.68.0., guix-commits, 2021/09/02
- 251/377: gnu: Add go-github-com-anaseto-gruid., guix-commits, 2021/09/02
- 266/377: gnu: glibmm-2.64: Update to 2.64.5., guix-commits, 2021/09/02
- 257/377: gnu: glib: Update synopsis, description and home-page., guix-commits, 2021/09/02
- 250/377: gnu: Add go-github-com-gdamore-tcell-v2., guix-commits, 2021/09/02
- 256/377: gnu: glib: Enable man pages., guix-commits, 2021/09/02
- 271/377: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/09/02
- 274/377: gnu: cairo: Change build-system., guix-commits, 2021/09/02
- 265/377: gnu: Add libsigc++-2., guix-commits, 2021/09/02