Skip to content

Commit

Permalink
Only restrict hidapi dependency on Linux
Browse files Browse the repository at this point in the history
We restrict the hidapi dependency to some specific versions to make sure
that the hidraw backend is used, see:
#602

But the hidapi versions that are now eligible are not providing wheels
for Python 3.13 so that they have to be compiled from source.  This is
an unnecessary complication for non-Linux platforms.  Therefore this
patch only applies the restriction on Linux.  Other platforms can use
any 0.14 release.
  • Loading branch information
robin-nitrokey committed Jan 16, 2025
1 parent 0b09f4a commit 1397cd4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ dependencies = [
"cryptography >=43,<45",
"ecdsa",
"fido2 >=1.2.0,<2",
# Limit hidapi to versions using the hidraw backend, see
"hidapi >=0.14,<0.15",
# Limit hidapi on Linux to versions using the hidraw backend, see
# https://github.com/Nitrokey/pynitrokey/issues/601
"hidapi >=0.14.0.post1, <0.14.0.post4",
"hidapi >=0.14.0.post1, <0.14.0.post4 ; sys_platform == 'linux'",
"intelhex",
"nkdfu",
"nitrokey ~=0.2.1",
Expand Down

0 comments on commit 1397cd4

Please sign in to comment.