nixpkgs/pkgs/development/python-modules/libevdev/fix-paths.patch
Martin Weinelt bff8570be5 python3Packages.libevdev: 0.12 -> 0.13.1
This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:27 +01:00

22 lines
854 B
Diff

diff --git a/libevdev/_clib.py b/libevdev/_clib.py
index c99fe4a..cdf94ad 100644
--- a/libevdev/_clib.py
+++ b/libevdev/_clib.py
@@ -133,7 +133,7 @@ class Libevdev(_LibraryWrapper):
@staticmethod
def _cdll() -> ctypes.CDLL:
- return ctypes.CDLL("libevdev.so.2", use_errno=True)
+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
_api_prototypes = {
# const char *libevdev_event_type_get_name(unsigned int type);
@@ -950,7 +950,7 @@ class UinputDevice(_LibraryWrapper):
@staticmethod
def _cdll() -> ctypes.CDLL:
- return ctypes.CDLL("libevdev.so.2", use_errno=True)
+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
_api_prototypes = {
# int libevdev_uinput_create_from_device(const struct libevdev *, int, struct libevdev_uinput **)