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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-nest-asyncio2 | 1.7.2 newest | no data | - | [email protected] | 2026-07-14 |
| FreeBSD | devel/py-nest-asyncio2 | 1.7.2 newest | none known | - | [email protected] | - |
| NetBSD | devel/py-nest-asyncio2 | 1.7.2 newest | none known | - | [email protected] | 2026-10-12 |
| HardenedBSD | devel/py-nest-asyncio2 | 1.7.2 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-nest-asyncio2 | 1.7.2 newest | no data | - | [email protected] | - |
Version history 1
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
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}setuptools>=42: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 3
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| nest_asyncio2-1.7.2.tar.gz | 14743 | 1921d70b92cc4612c374928d081552efb59b83d91b2b789d935c665fa01729a8 |
Master sites 1
- PYPI
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
b807d69740 |
Lucas Holt | Add LangChain AI ports and dependencies AI-Assisted-by: OpenAI Codex <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |