BSD Ports

devel/py-nest-asyncio2 1.7.2 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

nest-asyncio2 is a fork of the unmaintained nest_asyncio.

All interfaces are kept as they are. To migrate, you just need to change the package and module name to nest_asyncio2.

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.7.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]2026-07-14
FreeBSDdevel/py-nest-asyncio21.7.2 newestnone known-[email protected]-
NetBSDdevel/py-nest-asyncio21.7.2 newestnone known-[email protected]2026-10-12
HardenedBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]-
GhostBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 1.7.2 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-asyncio2

From mports:

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

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

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

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_asyncio2-1.7.2.tar.gz147431921d70b92cc4612c374928d081552efb59b83d91b2b789d935c665fa01729a8
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]>