Skip to content

Commit

Permalink
Restrict hidapi dependency
Browse files Browse the repository at this point in the history
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: #601
  • Loading branch information
robin-nitrokey committed Dec 13, 2024
1 parent 0235106 commit 687e4b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 687e4b7

Please sign in to comment.