From f4f46acffeb7289980c989f7ae12bd3c4dd5436f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 18 Oct 2025 12:47:05 +0200 Subject: [PATCH] dev-python/nest-asyncio: Enable py3.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../nest-asyncio/nest-asyncio-1.6.0-r1.ebuild | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/nest-asyncio/nest-asyncio-1.6.0-r1.ebuild diff --git a/dev-python/nest-asyncio/nest-asyncio-1.6.0-r1.ebuild b/dev-python/nest-asyncio/nest-asyncio-1.6.0-r1.ebuild new file mode 100644 index 000000000000..b3a673a544d3 --- /dev/null +++ b/dev-python/nest-asyncio/nest-asyncio-1.6.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Patch asyncio to allow nested event loops" +HOMEPAGE=" + https://github.com/erdewit/nest_asyncio/ + https://pypi.org/project/nest-asyncio/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + python3.14) + EPYTEST_DESELECT+=( + tests/nest_test.py::NestTest::test_timeout + ) + ;; + esac + + epytest +}