diff options
author | Dominic Shelton <frogamic@protonmail.com> | 2022-01-12 20:08:14 +1100 |
---|---|---|
committer | Dominic Shelton <frogamic@protonmail.com> | 2022-01-26 14:56:52 +1100 |
commit | b80ea23c7b3848d98a99a2fdb958cc351d8e6c4d (patch) | |
tree | 01916249f9490c1bdac2ea58576f6882b50d2c6c /pkgs/tools/security/pynitrokey | |
parent | 7bdef9ba9940f67dfb2627f3a092c51a969d28ce (diff) |
pynitrokey: init at 0.4.9
Diffstat (limited to 'pkgs/tools/security/pynitrokey')
-rw-r--r-- | pkgs/tools/security/pynitrokey/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/security/pynitrokey/default.nix b/pkgs/tools/security/pynitrokey/default.nix new file mode 100644 index 0000000000000..b50550e743688 --- /dev/null +++ b/pkgs/tools/security/pynitrokey/default.nix @@ -0,0 +1,44 @@ +{ python3Packages, lib }: + +with python3Packages; + +buildPythonApplication rec { + pname = "pynitrokey"; + version = "0.4.9"; + format = "flit"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-mhH6mVgLRX87PSGTFkj1TE75jU1lwcaRZWbC67T+vWo="; + }; + + propagatedBuildInputs = [ + click + cryptography + ecdsa + fido2 + intelhex + pyserial + pyusb + requests + pygments + python-dateutil + urllib3 + cffi + cbor + nkdfu + ]; + + # 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"; + }; +} |