Files
nixpkgs/pkgs/development/python-modules/nitrokey/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

60 lines
1001 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
poetry-core,
cryptography,
fido2,
requests,
tlv8,
pyserial,
protobuf,
semver,
crcmod,
hidapi,
}:
buildPythonPackage rec {
pname = "nitrokey";
version = "0.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-m351pDLMuZaddbUqJz5r/ljz/vVq+RBDGk4xskc3HCk=";
};
pythonRelaxDeps = [ "protobuf" ];
build-system = [ poetry-core ];
dependencies = [
fido2
requests
semver
tlv8
crcmod
cryptography
hidapi
protobuf
pyserial
];
# no tests
doCheck = false;
pythonImportsCheck = [ "nitrokey" ];
meta = {
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 lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ panicgh ];
};
}