python312Packages.nitrokey: init at 0.2.0

https://github.com/Nitrokey/nitrokey-sdk-py/releases/tag/v0.2.0
This commit is contained in:
Nicolas Benes 2024-10-05 19:21:24 +02:00
parent 4b616a8ecc
commit f3303548a0
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,61 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
poetry-core,
cryptography,
fido2,
requests,
tlv8,
pyserial,
protobuf5,
semver,
crcmod,
hidapi,
ecdsa,
}:
buildPythonPackage rec {
pname = "nitrokey";
version = "0.2.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-oWfhy7Mj1UnrC70G7fpkl4q4uG0CdvO0BHwfJYszR30=";
};
disabled = pythonOlder "3.9";
build-system = [ poetry-core ];
dependencies = [
fido2
requests
semver
tlv8
crcmod
cryptography
hidapi
ecdsa
protobuf5
pyserial
];
# no tests
doCheck = false;
pythonImportsCheck = [ "nitrokey" ];
meta = with lib; {
description = "Python SDK for Nitrokey devices";
homepage = "https://github.com/Nitrokey/nitrokey-sdk-py";
changelog = "https://github.com/Nitrokey/nitrokey-sdk-py/releases/tag/v${version}";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ panicgh ];
};
}

View File

@ -8951,6 +8951,8 @@ self: super: with self; {
nitransforms = callPackage ../development/python-modules/nitransforms { };
nitrokey = callPackage ../development/python-modules/nitrokey { };
niworkflows = callPackage ../development/python-modules/niworkflows { };
nix-kernel = callPackage ../development/python-modules/nix-kernel {