5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
77 lines
1.2 KiB
Nix
77 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
|
|
, pythonRelaxDepsHook
|
|
, setuptools
|
|
, setuptools-scm
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ledgerblue";
|
|
version = "0.1.53";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-j5FCQnp+MNrJ8zgYeLRuWF+Gdq0FwJeBYyJALb+H8So=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"protobuf"
|
|
];
|
|
|
|
dependencies = [
|
|
ecpy
|
|
future
|
|
hidapi
|
|
nfcpy
|
|
pillow
|
|
protobuf
|
|
pycrypto
|
|
pycryptodomex
|
|
pyelftools
|
|
python-gnupg
|
|
python-u2flib-host
|
|
websocket-client
|
|
]
|
|
++ lib.optionals stdenv.isLinux [
|
|
bleak
|
|
];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"ledgerblue"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to communicate with Ledger Blue/Nano S";
|
|
homepage = "https://github.com/LedgerHQ/blue-loader-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ np ];
|
|
};
|
|
}
|