buildroot: add python-evdev required by the pinpong library
This commit is contained in:
@ -342,6 +342,7 @@ BR2_PACKAGE_PYTHON_PILLOW=y
|
|||||||
BR2_PACKAGE_PYTHON_SMBUS_CFFI=y
|
BR2_PACKAGE_PYTHON_SMBUS_CFFI=y
|
||||||
BR2_PACKAGE_PYTHON_SPIDEV=y
|
BR2_PACKAGE_PYTHON_SPIDEV=y
|
||||||
BR2_PACKAGE_PYTHON_MODBUS_TK=y
|
BR2_PACKAGE_PYTHON_MODBUS_TK=y
|
||||||
|
BR2_PACKAGE_PYTHON_EVDEV=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compression and decompression
|
# Compression and decompression
|
||||||
|
|||||||
0
buildroot-2021.05/dl/python-evdev/.lock
Normal file
0
buildroot-2021.05/dl/python-evdev/.lock
Normal file
BIN
buildroot-2021.05/dl/python-evdev/evdev-1.6.1.tar.gz
Normal file
BIN
buildroot-2021.05/dl/python-evdev/evdev-1.6.1.tar.gz
Normal file
Binary file not shown.
@ -982,6 +982,7 @@ menu "External python modules"
|
|||||||
source "package/python-enum/Config.in"
|
source "package/python-enum/Config.in"
|
||||||
source "package/python-enum34/Config.in"
|
source "package/python-enum34/Config.in"
|
||||||
source "package/python-esptool/Config.in"
|
source "package/python-esptool/Config.in"
|
||||||
|
source "package/python-evdev/Config.in"
|
||||||
source "package/python-falcon/Config.in"
|
source "package/python-falcon/Config.in"
|
||||||
source "package/python-filelock/Config.in"
|
source "package/python-filelock/Config.in"
|
||||||
source "package/python-fire/Config.in"
|
source "package/python-fire/Config.in"
|
||||||
|
|||||||
10
buildroot-2021.05/package/python-evdev/Config.in
Normal file
10
buildroot-2021.05/package/python-evdev/Config.in
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
config BR2_PACKAGE_PYTHON_EVDEV
|
||||||
|
bool "python-evdev"
|
||||||
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||||
|
help
|
||||||
|
Bindings to the Linux input handling subsystem.
|
||||||
|
|
||||||
|
https://github.com/gvalkov/python-evdev
|
||||||
|
|
||||||
|
comment "python-evdev needs a toolchain w/ headers >= 4.4"
|
||||||
|
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
|
||||||
5
buildroot-2021.05/package/python-evdev/python-evdev.hash
Normal file
5
buildroot-2021.05/package/python-evdev/python-evdev.hash
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# md5, sha256 from https://pypi.org/pypi/evdev/json
|
||||||
|
md5 905b12ef6136b518ddf418d8d5b053e4 evdev-1.6.1.tar.gz
|
||||||
|
sha256 299db8628cc73b237fc1cc57d3c2948faa0756e2a58b6194b5bf81dc2081f1e3 evdev-1.6.1.tar.gz
|
||||||
|
# Locally computed sha256 checksums
|
||||||
|
sha256 55fd76d7b3f90d312f161d318631b93c58a0e69d662d07c4f5aca2c6c9ecc85e LICENSE
|
||||||
18
buildroot-2021.05/package/python-evdev/python-evdev.mk
Normal file
18
buildroot-2021.05/package/python-evdev/python-evdev.mk
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# python-evdev
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PYTHON_EVDEV_VERSION = 1.6.1
|
||||||
|
PYTHON_EVDEV_SOURCE = evdev-$(PYTHON_EVDEV_VERSION).tar.gz
|
||||||
|
PYTHON_EVDEV_SITE = https://files.pythonhosted.org/packages/05/50/629b011a7f61cb2fca754ea8631575784bf8605a1ec4d6970a010bc54e2b
|
||||||
|
PYTHON_EVDEV_SETUP_TYPE = setuptools
|
||||||
|
PYTHON_EVDEV_LICENSE = Revised BSD License
|
||||||
|
PYTHON_EVDEV_LICENSE_FILES = LICENSE
|
||||||
|
|
||||||
|
PYTHON_EVDEV_BUILD_OPTS = \
|
||||||
|
build_ecodes \
|
||||||
|
--evdev-headers $(STAGING_DIR)/usr/include/linux/input.h:$(STAGING_DIR)/usr/include/linux/input-event-codes.h:$(STAGING_DIR)/usr/include/linux/uinput.h
|
||||||
|
|
||||||
|
$(eval $(python-package))
|
||||||
Reference in New Issue
Block a user