diff options
author | Simon Bruder <simon@sbruder.de> | 2022-07-27 14:10:26 +0200 |
---|---|---|
committer | Simon Bruder <simon@sbruder.de> | 2022-08-17 13:00:54 +0200 |
commit | d6bbf7d2d15a2935d30e46a23e77acabd2c0668d (patch) | |
tree | 0844815d2dc364c08d6f1846f565bdbd3903c71e /pkgs/tools/security/pynitrokey | |
parent | f06e9ce0364fa0f8130d869d010fb598f434b902 (diff) |
pynitrokey: 0.4.9 -> 0.4.26
Diffstat (limited to 'pkgs/tools/security/pynitrokey')
-rw-r--r-- | pkgs/tools/security/pynitrokey/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix index b50550e743688..af8fd944cf818 100644 --- a/pkgs/tools/security/pynitrokey/default.nix +++ b/pkgs/tools/security/pynitrokey/default.nix @@ -1,15 +1,15 @@ -{ python3Packages, lib }: +{ python3Packages, lib, nrfutil }: with python3Packages; buildPythonApplication rec { pname = "pynitrokey"; - version = "0.4.9"; + version = "0.4.26"; format = "flit"; src = fetchPypi { inherit pname version; - sha256 = "sha256-mhH6mVgLRX87PSGTFkj1TE75jU1lwcaRZWbC67T+vWo="; + sha256 = "sha256-OuLR6txvoOpOUYpkjA5UkXUIIa1hYCwTmmPuUC3i4zM="; }; propagatedBuildInputs = [ @@ -18,17 +18,25 @@ buildPythonApplication rec { ecdsa fido2 intelhex + nrfutil pyserial pyusb requests pygments python-dateutil + spsdk urllib3 cffi cbor nkdfu ]; + # spsdk is patched to allow for newer cryptography + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "cryptography >=3.4.4,<37" "cryptography" + ''; + # no tests doCheck = false; |