dev-python/python-evdev: enable py3.11

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2022-06-08 21:47:58 +02:00
parent 8d6b3806c9
commit 53e0f5cb69
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/evdev/eventio_async.py b/evdev/eventio_async.py
index 77542a4..68225c3 100644
--- a/evdev/eventio_async.py
+++ b/evdev/eventio_async.py
@@ -85,8 +85,7 @@ class ReadIterator(object):
def __aiter__(self):
return self
- @asyncio.coroutine
- def __anext__(self):
+ async def __anext__(self):
future = asyncio.Future()
try:
# Read from the previous batch of events.

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
@@ -21,6 +21,11 @@ KEYWORDS="amd64 ~arm x86"
distutils_enable_tests pytest
PATCHES=(
# https://github.com/gvalkov/python-evdev/pull/174
"${FILESDIR}/${P}-python311.patch"
)
EPYTEST_DESELECT=(
tests/test_uinput.py
)