BSD Ports

devel/py-nest-asyncio 1.6.0_1 MidnightBSD

Patch asyncio to allow nested event loops

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
b807d69740
License
bsd2
Categories
devel, python

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
MidnightBSDdevel/py-nest-asyncio1.6.0_1 newestno data-[email protected]2026-07-14
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]>-
NetBSDdevel/py-nest-asyncio1.6.0nb1 newestnone known-[email protected]-
DragonFlydevel/py-nest-asyncio1.6.0_1 newestnone known-[email protected]-
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

Version history 1

  1. 1.6.0 b807d69740

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}nest-asyncio

From mports:

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

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

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nest-asyncio>0:devel/py-nest-asyncio

Dependency graph

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

Dependencies

As this port's Makefile names them.

Build 3

Build dependencies 3
Required by 1

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 1

DateCommitCreditsLog message
b807d69740 Lucas Holt Add LangChain AI ports and dependencies
AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>