# devel/py-nest-asyncio2 - The NetBSD Packages Collection

Patch asyncio to allow nested event loops

    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.

- Source version: `py313-nest-asyncio2-1.7.2`
- Maintainer: pkgsrc-users AT NetBSD.org
- Website: https://github.com/Chaoses-Ib/nest-asyncio2
- License: modified-bsd
- Package history: cvs, hg, git

## Build dependencies

devel/py-setuptools devel/py-setuptools_scm devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

## Runtime dependencies

lang/python313 lang/python313

## Binary packages

OS | Architecture | Version
--- | --- | ---
(none)

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

## Available build options

(none)

## Known vulnerabilities

(no vulnerabilities known)

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.