commit:     82cc5a013da077dfc879b63d6aea870ee42b4526
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 03:07:55 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 03:12:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82cc5a01

dev-python/evdev: Bump to 1.9.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/evdev/Manifest           |  1 +
 dev-python/evdev/evdev-1.9.0.ebuild | 44 +++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/dev-python/evdev/Manifest b/dev-python/evdev/Manifest
index 4b41bdfdf032..61a5ba9ea67a 100644
--- a/dev-python/evdev/Manifest
+++ b/dev-python/evdev/Manifest
@@ -1,2 +1,3 @@
 DIST python-evdev-1.7.1.gh.tar.gz 88275 BLAKE2B 
334f70785411bd0e8d348ddeb0a6a728dbfd5c3604a19e7153c47d6868f76b0d3c10317230b0d6874cc14b3765d0e520d932c551842bd0d758b7a735b30ba7cb
 SHA512 
802ba7c252a8817c60480db90b28e89b8356580d7b7f6a35725c70fcacbcabb3d3216330f6639ece940d901434cf1617d7682d344b7428fd5c5b6ab940700ff8
 DIST python-evdev-1.8.0.gh.tar.gz 47568 BLAKE2B 
489ebf6eecf2a7212b67f1393e105bbb801236f039bcc2adb805049a4941fc4d064a22b0928c69fa907197c444b49e7446b7641c4b19c1ff10b1fc4ad1a0d1ab
 SHA512 
86b2c08068863473e89f1455ff29f049786c292eaf1bdd44ad584054280aa2d40182640d67301653251ed13b2e7414bc81b7afc6b978a392d95fdce786f23e36
+DIST python-evdev-1.9.0.gh.tar.gz 47965 BLAKE2B 
0e3f48f6e2e5896647eda50b05f87b3342706ef7d9d962dd01d48f5c03b3ed4f1a26c47a8390cc903ced1be38d0401844a270a8b91348513f2fffc3d57656147
 SHA512 
dfe9d457f768814ec2f8e610a21503ba3c218f1518cad6ab5ee369b7d5c604e4ffdf3304461b3004d2bf582412d9d6d1d2b3f86ed28bb03e6e663f3de1ff3a25

diff --git a/dev-python/evdev/evdev-1.9.0.ebuild 
b/dev-python/evdev/evdev-1.9.0.ebuild
new file mode 100644
index 000000000000..38d528c26c4a
--- /dev/null
+++ b/dev-python/evdev/evdev-1.9.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1
+
+MY_P=python-evdev-${PV}
+DESCRIPTION="Python library for evdev bindings"
+HOMEPAGE="
+       https://python-evdev.readthedocs.io/
+       https://github.com/gvalkov/python-evdev/
+       https://pypi.org/project/evdev/
+"
+SRC_URI="
+       https://github.com/gvalkov/python-evdev/archive/v${PV}.tar.gz
+               -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~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
+}

Reply via email to