commit: 53e0f5cb69d174d980867e4a0218abc9210e6479 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Wed Jun 8 19:47:58 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Wed Jun 8 20:24:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53e0f5cb
dev-python/python-evdev: enable py3.11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> .../python-evdev/files/python-evdev-1.5.0-python311.patch | 14 ++++++++++++++ dev-python/python-evdev/python-evdev-1.5.0.ebuild | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch b/dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch new file mode 100644 index 000000000000..1f516c79acb2 --- /dev/null +++ b/dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch @@ -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. diff --git a/dev-python/python-evdev/python-evdev-1.5.0.ebuild b/dev-python/python-evdev/python-evdev-1.5.0.ebuild index a1df11de9086..3d0340816d88 100644 --- a/dev-python/python-evdev/python-evdev-1.5.0.ebuild +++ b/dev-python/python-evdev/python-evdev-1.5.0.ebuild @@ -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 )