BSD Ports

devel/py-nest-asyncio 1.6.0_1 FreeBSD

Patch asyncio to allow nested event loops

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
devel, python
Package size
10.8 KiB, 37.8 KiB installed

Description

By design asyncio does not allow its event loop to be nested. This presents a practical problem: When in an environment where the event loop is already running it's impossible to run tasks and wait for the result. Trying to do so will give the error "RuntimeError: This event loop is already running".

The issue pops up in various environments, such as web servers, GUI applications and in Jupyter notebooks.

This module patches asyncio to allow nested use of asyncio.run and loop.run_until_complete.

In the other systems

SystemPortVersion
FreeBSDdevel/py-nest-asyncio1.6.0_1
OpenBSDdevel/py-nest-asyncio1.5.4p3
NetBSDdevel/py-nest-asyncio1.6.0nb1
DragonFlydevel/py-nest-asyncio1.6.0_1
MidnightBSDdevel/py-nest-asyncio1.6.0_1
HardenedBSDdevel/py-nest-asyncio1.6.0_1
GhostBSDdevel/py-nest-asyncio1.6.0_1

Install

Binary package:

pkg install py312-nest-asyncio

From the ports tree:

cd /usr/ports/devel/py-nest-asyncio/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-nest-asyncio>0:devel/py-nest-asyncio

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.6.0_11.6.0_11.5.61.6.0_11.6.0_1
FreeBSD:14:quarterly1.6.0_11.6.0_1n/a1.6.0_11.6.0_1
FreeBSD:15:latest1.6.0_11.6.0_1n/a1.6.0_11.6.0_1
FreeBSD:15:quarterly1.6.0_11.6.0_1n/an/an/a
FreeBSD:16:latest1.6.0_11.6.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
nest_asyncio-1.6.0.tar.gz74186f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.