From 687e4b787073c9e0eb0228c96766a68696d4ae10 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 13 Dec 2024 13:30:06 +0100 Subject: [PATCH] Restrict hidapi dependency hidapi release v0.14.0-post.4 does not work with our udev rules as it switches back to the libusb backend instead of using hidraw. Until we have rolled out new udev rules or hidapi has migrated to hidraw for good, this patch restricts hidapi to the versions using the hidraw backend. Fixes: https://github.com/Nitrokey/pynitrokey/issues/601 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 21041054..5d609d21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,9 @@ dependencies = [ "cryptography >=41.0.4,<44", "ecdsa", "fido2 >=1.1.2,<2", + # Limit hidapi to versions using the hidraw backend, see + # https://github.com/Nitrokey/pynitrokey/issues/601 + "hidapi >=0.14.0.post1, <0.14.0.post4", "intelhex", "nkdfu", "nitrokey ~=0.2.1",