package/python-libevdev: new package

python-libevdev is needed for libinput replay command:

$ libinput replay recording.yml
Error: No module named 'libevdev'
One or more python modules are missing. Please install those modules and re-run this tool.

Indeed only libinput-replay tool is a python script
(like libinput-analyze-recording, libinput-measure-fuzz...)

python-libevdev itself requires a kernel built with
CONFIG_INPUT_UINPUT option enabled, enable this option if a kernel is
built by Buildroot.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour 2022-08-09 15:27:29 +02:00 committed by Thomas Petazzoni
parent bf85b8e267
commit f052047095
5 changed files with 34 additions and 0 deletions

View File

@ -2584,6 +2584,7 @@ F: package/ogre/
F: package/openpowerlink/
F: package/physfs/
F: package/piglit/
F: package/python-libevdev/
F: package/qemu/
F: package/solarus/
F: package/stress-ng/

View File

@ -1095,6 +1095,7 @@ menu "External python modules"
source "package/python-kiwisolver/Config.in"
source "package/python-lark/Config.in"
source "package/python-libconfig/Config.in"
source "package/python-libevdev/Config.in"
source "package/python-libusb1/Config.in"
source "package/python-lmdb/Config.in"
source "package/python-lockfile/Config.in"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_PYTHON_LIBEVDEV
bool "python-libevdev"
select BR2_PACKAGE_LIBEVDEV # runtime
help
Python wrapper for libevdev.
https://gitlab.freedesktop.org/libevdev/python-libevdev

View File

@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/libevdev/json
md5 34b48098c1fba26de79a0d67a17a588a libevdev-0.11.tar.gz
sha256 e9ca006a4df2488a60bd9a740011ee948d81904be2364f017e560169508f560f libevdev-0.11.tar.gz
# Locally computed sha256 checksums
sha256 a547b196da4e5bb9588a6e24f1f36ae9e2349ca5375e2cf9c315186e237d9f6d COPYING

View File

@ -0,0 +1,20 @@
################################################################################
#
# python-libevdev
#
################################################################################
PYTHON_LIBEVDEV_VERSION = 0.11
PYTHON_LIBEVDEV_SOURCE = libevdev-$(PYTHON_LIBEVDEV_VERSION).tar.gz
PYTHON_LIBEVDEV_SITE = https://files.pythonhosted.org/packages/b0/49/2fe589ce1fa6ca0f05ae0b1717923650f2cc6eec6307c71fbc7789738902
PYTHON_LIBEVDEV_SETUP_TYPE = setuptools
PYTHON_LIBEVDEV_LICENSE = MIT
PYTHON_LIBEVDEV_LICENSE_FILES = COPYING
# Requires a kernel built with user level driver support (uinput).
define PYTHON_LIBEVDEV_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_INPUT_MISC)
$(call KCONFIG_ENABLE_OPT,CONFIG_INPUT_UINPUT)
endef
$(eval $(python-package))