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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-nest-asyncio | 1.6.0_1 newest | no data | - | [email protected] | 2026-07-14 |
| FreeBSD | devel/py-nest-asyncio | 1.6.0_1 newest | none known | - | [email protected] | - |
| OpenBSD | devel/py-nest-asyncio | 1.5.4p3 behind since 2026-07-14 | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/py-nest-asyncio | 1.6.0nb1 newest | none known | - | [email protected] | - |
| DragonFly | devel/py-nest-asyncio | 1.6.0_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-nest-asyncio | 1.6.0_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-nest-asyncio | 1.6.0_1 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-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
${PYTHON_PKGNAMEPREFIX}setuptools>=42: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3: devel/py-setuptools-scm${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_asyncio-1.6.0.tar.gz | 7418 | 6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe |
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]> |