BSD Ports

devel/py-nest-asyncio 1.6.0nb1 NetBSD

Patch asyncio to allow nested event loops

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
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

The newest version among them is 1.6.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/py-nest-asyncio1.6.0nb1 newestnone known-[email protected]-
FreeBSDdevel/py-nest-asyncio1.6.0_1 newestnone known-[email protected]-
OpenBSDdevel/py-nest-asyncio1.5.4p3 behind since 2026-07-14no data-The OpenBSD ports mailing-list <[email protected]>-
DragonFlydevel/py-nest-asyncio1.6.0_1 newestnone known-[email protected]-
MidnightBSDdevel/py-nest-asyncio1.6.0_1 newestno data-[email protected]2026-07-14
HardenedBSDdevel/py-nest-asyncio1.6.0_1 newestno data-[email protected]-
GhostBSDdevel/py-nest-asyncio1.6.0_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkgin install py311-nest-asyncio

From pkgsrc:

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

Packages

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

RepositoryVersion
NetBSD 10.1 x86_641.6.0nb1
NetBSD 10.1 aarch641.6.0nb1
SmartOS / illumos x86_641.6.0nb1
macOS 15 arm641.6.0nb1

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-nest-asyncio-1.6.0nb1, py313-nest-asyncio-1.6.0nb1, py314-nest-asyncio-1.6.0nb1