depot/third_party/nixpkgs/pkgs/tools/security/pynitrokey/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

57 lines
972 B
Nix

{ python3Packages, lib, nrfutil }:
with python3Packages;
buildPythonApplication rec {
pname = "pynitrokey";
version = "0.4.31";
format = "flit";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nqw5wUzQxKCBzYBRhqB6v7WWrF1Ojf8z6Kf1YUA9+wU=";
};
propagatedBuildInputs = [
click
cryptography
ecdsa
fido2
intelhex
nrfutil
pyserial
pyusb
requests
pygments
python-dateutil
spsdk
urllib3
cffi
cbor
nkdfu
fido2
tlv8
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"cryptography"
"spsdk"
];
# 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";
};
}