depot/third_party/nixpkgs/pkgs/development/python-modules/ledgerblue/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

69 lines
1.1 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.54";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Hn99ST6RnER6XI6+rqA3O9/aC+whYoTOzeoHGF/fFz4=";
};
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.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 ];
};
}