depot/third_party/nixpkgs/pkgs/development/python-modules/nitrokey/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

61 lines
1,020 B
Nix

{
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 ];
};
}