depot/third_party/nixpkgs/pkgs/development/python-modules/ledgerblue/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

62 lines
1,018 B
Nix

{ lib
, stdenv
, bleak
, buildPythonPackage
, ecpy
, fetchPypi
, future
, hidapi
, nfcpy
, pillow
, protobuf
, pycrypto
, pycryptodomex
, pyelftools
, python-u2flib-host
, pythonOlder
, websocket-client
}:
buildPythonPackage rec {
pname = "ledgerblue";
version = "0.1.48";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LVRNcsTmJOR3zTBhbKV4V0zCQk0sk/Uf6kSmfbAhgfY=";
};
propagatedBuildInputs = [
ecpy
future
hidapi
nfcpy
pillow
protobuf
pycrypto
pycryptodomex
pyelftools
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 ];
};
}