pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel py-nest-asyncio: added version 1.5.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/376dfe986f34
branches: trunk
changeset: 372853:376dfe986f34
user: adam <adam%pkgsrc.org@localhost>
date: Mon Jan 31 17:47:22 2022 +0000
description:
py-nest-asyncio: added version 1.5.4
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.
diffstat:
devel/Makefile | 3 ++-
devel/py-nest-asyncio/DESCR | 10 ++++++++++
devel/py-nest-asyncio/Makefile | 18 ++++++++++++++++++
devel/py-nest-asyncio/PLIST | 8 ++++++++
devel/py-nest-asyncio/distinfo | 5 +++++
5 files changed, 43 insertions(+), 1 deletions(-)
diffs (74 lines):
diff -r 150ee3b8a437 -r 376dfe986f34 devel/Makefile
--- a/devel/Makefile Mon Jan 31 17:35:38 2022 +0000
+++ b/devel/Makefile Mon Jan 31 17:47:22 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3570 2022/01/31 11:54:25 wiz Exp $
+# $NetBSD: Makefile,v 1.3571 2022/01/31 17:47:22 adam Exp $
#
COMMENT= Development utilities
@@ -2444,6 +2444,7 @@
SUBDIR+= py-msgpack
SUBDIR+= py-mulpyplexer
SUBDIR+= py-multipledispatch
+SUBDIR+= py-nest-asyncio
SUBDIR+= py-newt
SUBDIR+= py-nose
SUBDIR+= py-nose-exclude
diff -r 150ee3b8a437 -r 376dfe986f34 devel/py-nest-asyncio/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-nest-asyncio/DESCR Mon Jan 31 17:47:22 2022 +0000
@@ -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.
diff -r 150ee3b8a437 -r 376dfe986f34 devel/py-nest-asyncio/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-nest-asyncio/Makefile Mon Jan 31 17:47:22 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/01/31 17:47:22 adam Exp $
+
+DISTNAME= nest_asyncio-1.5.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=n/nest-asyncio/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/erdewit/nest_asyncio
+COMMENT= Patch asyncio to allow nested event loops
+LICENSE= modified-bsd
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 150ee3b8a437 -r 376dfe986f34 devel/py-nest-asyncio/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-nest-asyncio/PLIST Mon Jan 31 17:47:22 2022 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/31 17:47:22 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/nest_asyncio.py
+${PYSITELIB}/nest_asyncio.pyc
+${PYSITELIB}/nest_asyncio.pyo
diff -r 150ee3b8a437 -r 376dfe986f34 devel/py-nest-asyncio/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-nest-asyncio/distinfo Mon Jan 31 17:47:22 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/01/31 17:47:22 adam Exp $
+
+BLAKE2s (nest_asyncio-1.5.4.tar.gz) = b224aa9e1ee746234fcba9de1aa67dbd0cfafe8a2c1ba1dea1e7da509325ddc4
+SHA512 (nest_asyncio-1.5.4.tar.gz) = 982e274712ec8a8004108492708f28fbf459c5f2d274e754387b0afa0f92425fe29be075e3402bbc319accf17974efcbb3015799421f6a10ed15cfa424f82310
+Size (nest_asyncio-1.5.4.tar.gz) = 5893 bytes
Home |
Main Index |
Thread Index |
Old Index