From 93f0b20c1df250463a8da789dd4415b77cf855d1 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sun, 17 Jul 2022 12:47:25 +0000 Subject: Adding metadata --- .../files/python-evdev-1.5.0-python311.patch | 14 -------- .../python-evdev/python-evdev-1.5.0-r1.ebuild | 37 +++++++++++++++++++ dev-python/python-evdev/python-evdev-1.5.0.ebuild | 42 ---------------------- 3 files changed, 37 insertions(+), 56 deletions(-) delete mode 100644 dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch create mode 100644 dev-python/python-evdev/python-evdev-1.5.0-r1.ebuild delete mode 100644 dev-python/python-evdev/python-evdev-1.5.0.ebuild (limited to 'dev-python/python-evdev') 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 deleted file mode 100644 index 1f516c79acb2..000000000000 --- a/dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch +++ /dev/null @@ -1,14 +0,0 @@ -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-r1.ebuild b/dev-python/python-evdev/python-evdev-1.5.0-r1.ebuild new file mode 100644 index 000000000000..dd2e59170481 --- /dev/null +++ b/dev-python/python-evdev/python-evdev-1.5.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="Python library for evdev bindings" +HOMEPAGE="https://python-evdev.readthedocs.io/" +SRC_URI=" + https://github.com/gvalkov/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm x86" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + tests/test_uinput.py +) + +python_configure_all() { + esetup.py build_ecodes \ + --evdev-headers \ + "${ESYSROOT}/usr/include/linux/input.h:${ESYSROOT}/usr/include/linux/input-event-codes.h" +} + +src_test() { + cd tests || die + distutils-r1_src_test +} diff --git a/dev-python/python-evdev/python-evdev-1.5.0.ebuild b/dev-python/python-evdev/python-evdev-1.5.0.ebuild deleted file mode 100644 index 5fd0c900e87c..000000000000 --- a/dev-python/python-evdev/python-evdev-1.5.0.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="Python library for evdev bindings" -HOMEPAGE="https://python-evdev.readthedocs.io/" -SRC_URI=" - https://github.com/gvalkov/${PN}/archive/v${PV}.tar.gz - -> ${P}.tar.gz -" - -LICENSE="BSD" -SLOT="0" -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 -) - -python_configure_all() { - esetup.py build_ecodes \ - --evdev-headers \ - "${ESYSROOT}/usr/include/linux/input.h:${ESYSROOT}/usr/include/linux/input-event-codes.h" -} - -src_test() { - cd tests || die - distutils-r1_src_test -} -- cgit v1.3.1