From: Aisha Tammy Date: Sun, 3 May 2020 11:37:45 +0000 (-0400) Subject: dev-python/python-evdev: bump version to 1.3.0 + new proxy-maint X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9291018632baa450f7bef0d31157c40f200e2ae1;p=gentoo.git 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 Signed-off-by: Joonas Niilola --- diff --git a/dev-python/python-evdev/Manifest b/dev-python/python-evdev/Manifest index 0fc035a8789d..d3c4e07a4204 100644 --- a/dev-python/python-evdev/Manifest +++ b/dev-python/python-evdev/Manifest @@ -1 +1,2 @@ DIST python-evdev-1.1.2.tar.gz 83067 BLAKE2B 6434d5c62e4a072928d555bfc92e94e7f63ef98ebbf9cd95795a92d6ccdf7b5d4b0f3133a4b3f2524083b842f78ccc305a5da13af59052be3724d83ea4039328 SHA512 054b2e5af532079dc52919d90791d12d7caf75cade07d18b94ea519869659413ea059570b16ebb236a715c541b17016db380bea4e3c1cd21f96824c6303b45d6 +DIST python-evdev-1.3.0.tar.gz 85018 BLAKE2B ba5c391631ecf8cc0a46f21830209c59b1217940ff25e051e027bc8896d71965a394f222f4e3d629ba2a2f8056ccbdc0dfaf43a37684d7157c7456d61f2d8314 SHA512 392fb4fabed344e6db4e257d4cfc7043393efda15d940be80b013e4c4e350334148a7b04aa0a7239f824ad2c7e0bb057c5cff1c0f320d30b25b0c9aab65a6891 diff --git a/dev-python/python-evdev/metadata.xml b/dev-python/python-evdev/metadata.xml index 1bdf43071500..52c3f63cafa2 100644 --- a/dev-python/python-evdev/metadata.xml +++ b/dev-python/python-evdev/metadata.xml @@ -1,8 +1,12 @@ - - - gvalkov/python-evdev - + + gentoo@aisha.cc + Aisha Tammy + + + proxy-maint@gentoo.org + Proxy Maintainers + 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}" +}