nixpkgs/pkgs/tools/security/pynitrokey/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
972 B
Nix
Raw Normal View History

2022-07-27 12:10:26 +00:00
{ python3Packages, lib, nrfutil }:
2022-01-12 09:08:14 +00:00
with python3Packages;
buildPythonApplication rec {
pname = "pynitrokey";
2022-12-04 08:56:07 +00:00
version = "0.4.31";
2022-01-12 09:08:14 +00:00
format = "flit";
src = fetchPypi {
inherit pname version;
2022-12-04 08:56:07 +00:00
sha256 = "sha256-nqw5wUzQxKCBzYBRhqB6v7WWrF1Ojf8z6Kf1YUA9+wU=";
2022-01-12 09:08:14 +00:00
};
propagatedBuildInputs = [
click
cryptography
ecdsa
fido2
intelhex
2022-07-27 12:10:26 +00:00
nrfutil
2022-01-12 09:08:14 +00:00
pyserial
pyusb
requests
pygments
python-dateutil
2022-07-27 12:10:26 +00:00
spsdk
2022-01-12 09:08:14 +00:00
urllib3
cffi
cbor
nkdfu
2022-12-04 08:56:07 +00:00
fido2
tlv8
2022-01-12 09:08:14 +00:00
];
2023-01-04 09:27:07 +00:00
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"cryptography"
"spsdk"
];
2022-07-27 12:10:26 +00:00
2022-01-12 09:08:14 +00:00
# no tests
doCheck = false;
pythonImportsCheck = [ "pynitrokey" ];
meta = with lib; {
description = "Python client for Nitrokey devices";
homepage = "https://github.com/Nitrokey/pynitrokey";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ frogamic ];
mainProgram = "nitropy";
};
}