mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/python-evdev: enable py3.11
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -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.
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user