Skip to content

Commit

Permalink
pynitrokey: 0.4.9 -> 0.4.26
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruder committed Aug 17, 2022
1 parent f06e9ce commit d6bbf7d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkgs/tools/security/pynitrokey/default.nix
Original file line number Diff line number Diff line change
@@ -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 = [
Expand All @@ -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;

Expand Down

0 comments on commit d6bbf7d

Please sign in to comment.