Files
nixpkgs/pkgs/development/python-modules/ledgerblue/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

71 lines
1.2 KiB
Nix

{
lib,
stdenv,
bleak,
buildPythonPackage,
ecpy,
fetchPypi,
future,
hidapi,
nfcpy,
pillow,
protobuf,
pycrypto,
pycryptodomex,
pyelftools,
python-gnupg,
python-u2flib-host,
pythonOlder,
setuptools,
setuptools-scm,
websocket-client,
}:
buildPythonPackage rec {
pname = "ledgerblue";
version = "0.1.55";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-6s2V8cXik6jEg8z3UK49qVwodPbwXMIkWk7iJ7OY0rM=";
};
build-system = [
setuptools
setuptools-scm
];
pythonRelaxDeps = [ "protobuf" ];
dependencies = [
ecpy
future
hidapi
nfcpy
pillow
protobuf
pycrypto
pycryptodomex
pyelftools
python-gnupg
python-u2flib-host
websocket-client
]
++ lib.optionals stdenv.hostPlatform.isLinux [ bleak ];
# No tests
doCheck = false;
pythonImportsCheck = [ "ledgerblue" ];
meta = {
description = "Python library to communicate with Ledger Blue/Nano S";
homepage = "https://github.com/LedgerHQ/blue-loader-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ np ];
};
}