{"added":"2026-07-14T23:28:50-04:00","apiVersion":1,"behindSince":null,"buildDepends":["devel/py-setuptools","devel/py-setuptools-scm","devel/py-wheel"],"categories":["devel","python"],"comment":"Patch asyncio to allow nested event loops","compare":"/compare/py312-nest-asyncio2/index.json","dependentCount":null,"description":"nest-asyncio2 is a fork of the unmaintained nest_asyncio.\n\nAll interfaces are kept as they are. To migrate, you just need to change the\npackage and module name to nest_asyncio2.\n\nBy design asyncio does not allow its event loop to be nested. This presents a\npractical problem: When in an environment where the event loop is already\nrunning it's impossible to run tasks and wait for the result. Trying to do so\nwill give the error \"RuntimeError: This event loop is already running\".\n\nThe issue pops up in various environments, such as web servers, GUI applications\nand in Jupyter notebooks.\n\nThis module patches asyncio to allow nested use of asyncio.run and\nloop.run_until_complete.","flavors":[],"html":"https://daemonports.org/midnightbsd/devel/py-nest-asyncio2/","kind":"port","lastUpdate":"2026-07-14T23:28:50-04:00","license":["bsd2"],"maintainer":"ports@MidnightBSD.org","name":"${PYTHON_PKGNAMEPREFIX}nest-asyncio2","newest":true,"newestVersion":"1.7.2","noVulnData":true,"origin":"devel/py-nest-asyncio2","otherSystems":[{"maintainer":"dvl@FreeBSD.org","newest":true,"origin":"devel/py-nest-asyncio2","path":"/devel/py-nest-asyncio2/","system":"FreeBSD","version":"1.7.2"},{"maintainer":"pkgsrc-users@NetBSD.org","newest":true,"origin":"devel/py-nest-asyncio2","path":"/netbsd/devel/py-nest-asyncio2/","system":"NetBSD","updated":"2026-10-12","version":"1.7.2"},{"maintainer":"dvl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-nest-asyncio2","path":"","system":"HardenedBSD","version":"1.7.2"},{"maintainer":"dvl@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-nest-asyncio2","path":"","system":"GhostBSD","version":"1.7.2"}],"packages":null,"pkgName":"${PYTHON_PKGNAMEPREFIX}nest-asyncio2-1.7.2","related":["devel/py-nest-asyncio"],"repository":"mports","requiredBy":["devel/py-ipykernel"],"requiredByCount":1,"runDepends":[],"status":null,"system":"midnightbsd","systemLabel":"MidnightBSD","version":"1.7.2","versions":[{"commit":"b807d69740d814e9a9f67fedd06769996bcc27ea","date":"2026-07-14","version":"1.7.2"}],"vulnerabilities":null,"www":"https://github.com/Chaoses-Ib/nest-asyncio2"}
