summaryrefslogtreecommitdiff
path: root/dev-python/autobahn/autobahn-24.4.2.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/autobahn/autobahn-24.4.2.ebuild')
-rw-r--r--dev-python/autobahn/autobahn-24.4.2.ebuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/dev-python/autobahn/autobahn-24.4.2.ebuild b/dev-python/autobahn/autobahn-24.4.2.ebuild
index 332809ff32cf..0d7cfdc2fcbf 100644
--- a/dev-python/autobahn/autobahn-24.4.2.ebuild
+++ b/dev-python/autobahn/autobahn-24.4.2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 optfeature pypi
@@ -57,6 +57,11 @@ BDEPEND="
"
python_prepare_all() {
+ local PATCHES=(
+ # https://github.com/crossbario/autobahn-python/pull/1661
+ "${FILESDIR}/${P}-pytest-asyncio-1.patch"
+ )
+
if use xbr ; then
eerror "***************"
eerror "Required xbr dependencies are incomplete in Gentoo."
@@ -77,10 +82,6 @@ python_prepare_all() {
# to fix tinderbox sandbox issue
sed -e '/import/s:reactor:__importmustfail__:' \
-i setup.py || die
-
- # https://github.com/crossbario/autobahn-python/issues/1646
- sed -e 's:(forbid_global_loop=True)::' \
- -i autobahn/wamp/test/test_wamp_component_aio.py || die
}
python_test() {
@@ -92,9 +93,9 @@ python_test() {
unset USE_TWISTED
einfo "RE-testing cryptosign and component_aio using asyncio"
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local EPYTEST_PLUGINS=( pytest-asyncio )
local -x USE_ASYNCIO=true
- epytest -p asyncio --pyargs \
+ epytest --pyargs \
autobahn.asyncio.test.test_aio_{raw,web}socket \
autobahn.wamp.test.test_wamp_{cryptosign,component_aio}
unset USE_ASYNCIO