python-libevdev is a Python wrapper around the libevdev C library.
It provides a Pythonic API to read events from the Linux kernel’s input device
nodes and to read and/or modify the device’s state and capabilities.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-libevdev listed in the above command, you can pick from the names under the Packages section.
devel/py-libevdev: add missing dependency
>>> import libevdev
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.11/site-packages/libevdev/__init__.py", line 23,
in <module>
from .device import Device, InputAbsInfo
File "/usr/local/lib/python3.11/site-packages/libevdev/device.py", line 29, in
<module>
from .event import InputEvent
File "/usr/local/lib/python3.11/site-packages/libevdev/event.py", line 23, in
<module>
from .const import EventType, EventCode
File "/usr/local/lib/python3.11/site-packages/libevdev/const.py", line 427, in
<module>
_load_consts()
File "/usr/local/lib/python3.11/site-packages/libevdev/const.py", line 352, in
_load_consts
Libevdev() # classmethods, need to make sure it's loaded at once
(Only the first 15 lines of the commit message are shown above )
devel/py-libevdev: add new port
python-libevdev is a Python wrapper around the libevdev C library.
It provides a Pythonic API to read events from the Linux kernel’s input device
nodes and to read and/or modify the device’s state and capabilities.
Sponsored by: Serenity Cybersecurity, LLC
Closes: https://github.com/freebsd/freebsd-ports/pull/273