summaryrefslogtreecommitdiff
path: root/dev-python/python-evdev/python-evdev-1.3.0.ebuild
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2020-05-03 07:37:45 -0400
committerJoonas Niilola <juippis@gentoo.org>2020-05-12 16:57:13 +0300
commit9291018632baa450f7bef0d31157c40f200e2ae1 (patch)
tree89e094b4f0bc4a30feab586e0f772877d55f4f9d /dev-python/python-evdev/python-evdev-1.3.0.ebuild
parent8f0f8e145c8d9f2cf52725ecc1d7b7a4f3977239 (diff)
downloadgentoo-9291018632baa450f7bef0d31157c40f200e2ae1.tar.gz
gentoo-9291018632baa450f7bef0d31157c40f200e2ae1.tar.bz2
gentoo-9291018632baa450f7bef0d31157c40f200e2ae1.zip
dev-python/python-evdev: bump version to 1.3.0 + new proxy-maint
Also added support for python 3.8 with minimal testing on amd64 Closes: https://bugs.gentoo.org/720780 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/python-evdev/python-evdev-1.3.0.ebuild')
-rw-r--r--dev-python/python-evdev/python-evdev-1.3.0.ebuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-python/python-evdev/python-evdev-1.3.0.ebuild b/dev-python/python-evdev/python-evdev-1.3.0.ebuild
new file mode 100644
index 000000000000..322655625445
--- /dev/null
+++ b/dev-python/python-evdev/python-evdev-1.3.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for evdev bindings"
+HOMEPAGE="https://python-evdev.readthedocs.org/"
+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
+
+python_compile() {
+ distutils-r1_python_compile build_ecodes \
+ --evdev-headers \
+ "${SYSROOT}"/usr/include/linux/input.h:"${SYSROOT}"/usr/include/linux/input-event-codes.h
+}
+
+python_test() {
+ pytest -vv tests/test_ecodes.py || die "ecodes test failed for ${EPYTHON}"
+ pytest -vv tests/test_events.py || die "events test failed for ${EPYTHON}"
+ pytest -vv tests/test_uinput.py || die "uinput test failed foe ${EPYTHON}"
+}