pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Aug 28 10:34:24 UTC 2026

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/py-nest-asyncio2: DESCR Makefile PLIST distinfo

Log Message:
py-nest-asyncio2: added version 1.7.2

nest-asyncio2 is a fork of the unmaintained nest_asyncio, with the following changes:
Support setting run_close_loop to avoid leaked event loop.
Python 3.12 support
loop_factory parameter support
Python 3.14 support
Fix broken asyncio.current_task() and others
Fix DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16
To avoid potential bugs, apply() will warn if asyncio is already patched by nest_asyncio on Python 3.12+.
You can also set error_on_mispatched=True to turn the warning into a RuntimeError, regardless of the Python version.
There is no behavior change on Python < 3.12.
All interfaces are kept as they are. To migrate, you just need to change the package and module name to nest_asyncio2.


To generate a diff of this commit:
cvs rdiff -u -r1.4679 -r1.4680 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-nest-asyncio2/DESCR \
    pkgsrc/devel/py-nest-asyncio2/Makefile \
    pkgsrc/devel/py-nest-asyncio2/PLIST \
    pkgsrc/devel/py-nest-asyncio2/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.4679 pkgsrc/devel/Makefile:1.4680
--- pkgsrc/devel/Makefile:1.4679        Thu Aug 27 08:26:05 2026
+++ pkgsrc/devel/Makefile       Fri Aug 28 10:34:23 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4679 2026/08/27 08:26:05 adam Exp $
+# $NetBSD: Makefile,v 1.4680 2026/08/28 10:34:23 adam Exp $
 #
 
 COMMENT=       Development utilities
@@ -2841,6 +2841,7 @@ SUBDIR+=  py-msgspec
 SUBDIR+=       py-mulpyplexer
 SUBDIR+=       py-multipledispatch
 SUBDIR+=       py-nest-asyncio
+SUBDIR+=       py-nest-asyncio2
 SUBDIR+=       py-newt
 SUBDIR+=       py-nihtest
 SUBDIR+=       py-ninja

Added files:

Index: pkgsrc/devel/py-nest-asyncio2/DESCR
diff -u /dev/null pkgsrc/devel/py-nest-asyncio2/DESCR:1.1
--- /dev/null   Fri Aug 28 10:34:24 2026
+++ pkgsrc/devel/py-nest-asyncio2/DESCR Fri Aug 28 10:34:23 2026
@@ -0,0 +1,10 @@
+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.
Index: pkgsrc/devel/py-nest-asyncio2/Makefile
diff -u /dev/null pkgsrc/devel/py-nest-asyncio2/Makefile:1.1
--- /dev/null   Fri Aug 28 10:34:24 2026
+++ pkgsrc/devel/py-nest-asyncio2/Makefile      Fri Aug 28 10:34:23 2026
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2026/08/28 10:34:23 adam Exp $
+
+DISTNAME=      nest_asyncio2-1.7.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=n/nest-asyncio2/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/Chaoses-Ib/nest-asyncio2
+COMMENT=       Patch asyncio to allow nested event loops
+LICENSE=       modified-bsd
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.3:../../devel/py-setuptools_scm
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-nest-asyncio2/PLIST
diff -u /dev/null pkgsrc/devel/py-nest-asyncio2/PLIST:1.1
--- /dev/null   Fri Aug 28 10:34:24 2026
+++ pkgsrc/devel/py-nest-asyncio2/PLIST Fri Aug 28 10:34:23 2026
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2026/08/28 10:34:23 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/nest_asyncio2.py
+${PYSITELIB}/nest_asyncio2.pyc
+${PYSITELIB}/nest_asyncio2.pyo
Index: pkgsrc/devel/py-nest-asyncio2/distinfo
diff -u /dev/null pkgsrc/devel/py-nest-asyncio2/distinfo:1.1
--- /dev/null   Fri Aug 28 10:34:24 2026
+++ pkgsrc/devel/py-nest-asyncio2/distinfo      Fri Aug 28 10:34:23 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/08/28 10:34:23 adam Exp $
+
+BLAKE2s (nest_asyncio2-1.7.2.tar.gz) = cae521b7b414f225f8cd26dacf05da2272bb5b186ccdfc0ff7de4c640abe045f
+SHA512 (nest_asyncio2-1.7.2.tar.gz) = 8487fd49ff1f21d3c0f89549782f760126c1e1fb9b5c9db0bff6c1a7d4d8c1a945729a79ff7af9543ef58d50c14830aeedaaa6c35f4a2510630fa7a32c9002e1
+Size (nest_asyncio2-1.7.2.tar.gz) = 14743 bytes



Home | Main Index | Thread Index | Old Index