Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2026 18:23:38 +0000
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bbf02593e14e - main - devel/py-nest-asyncio2: Add new port
Message-ID:  <6a1736aa.40b44.3665c28a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bbf02593e14e5ad0bd5422e508e29ca7bfafa4f4

commit bbf02593e14e5ad0bd5422e508e29ca7bfafa4f4
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2026-05-27 18:22:11 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2026-05-27 18:23:34 +0000

    devel/py-nest-asyncio2: Add new port
    
    nest-asyncio2 is a fork of the unmaintained nest_asyncio
---
 devel/Makefile                   |  1 +
 devel/py-nest-asyncio2/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-nest-asyncio2/distinfo  |  3 +++
 devel/py-nest-asyncio2/pkg-descr | 15 +++++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index cff46d7064a8..a0d06e99ffd1 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5431,6 +5431,7 @@
     SUBDIR += py-nbformat
     SUBDIR += py-nbval
     SUBDIR += py-nest-asyncio
+    SUBDIR += py-nest-asyncio2
     SUBDIR += py-ninja
     SUBDIR += py-node-semver
     SUBDIR += py-nodeenv
diff --git a/devel/py-nest-asyncio2/Makefile b/devel/py-nest-asyncio2/Makefile
new file mode 100644
index 000000000000..a29f074bd6b9
--- /dev/null
+++ b/devel/py-nest-asyncio2/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	nest-asyncio2
+PORTVERSION=	1.7.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	nest_asyncio2-${PORTVERSION}
+
+MAINTAINER=	dvl@FreeBSD.org
+COMMENT=	Patch asyncio to allow nested event loops
+WWW=		https://github.com/Chaoses-Ib/nest-asyncio2
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-nest-asyncio2/distinfo b/devel/py-nest-asyncio2/distinfo
new file mode 100644
index 000000000000..1f991a949fdf
--- /dev/null
+++ b/devel/py-nest-asyncio2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1779905446
+SHA256 (nest_asyncio2-1.7.2.tar.gz) = 1921d70b92cc4612c374928d081552efb59b83d91b2b789d935c665fa01729a8
+SIZE (nest_asyncio2-1.7.2.tar.gz) = 14743
diff --git a/devel/py-nest-asyncio2/pkg-descr b/devel/py-nest-asyncio2/pkg-descr
new file mode 100644
index 000000000000..a20b7085a156
--- /dev/null
+++ b/devel/py-nest-asyncio2/pkg-descr
@@ -0,0 +1,15 @@
+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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1736aa.40b44.3665c28a>