1{ lib, fetchPypi, buildPythonPackage, hidapi
2, pycrypto, pillow, protobuf, future, ecpy, python-u2flib-host, pycryptodomex
3, websocket-client
4}:
5
6buildPythonPackage rec {
7 pname = "ledgerblue";
8 version = "0.1.38";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "df1fffc4f586eaa95b8cf910176d28997e65a3ecd43d9c0af34e46078b6b6ee3";
13 };
14
15 propagatedBuildInputs = [
16 hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex websocket-client
17 ];
18
19 # No tests
20 doCheck = false;
21
22 pythonImportsCheck = [ "ledgerblue" ];
23
24 meta = with lib; {
25 description = "Python library to communicate with Ledger Blue/Nano S";
26 homepage = "https://github.com/LedgerHQ/blue-loader-python";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ np ];
29 };
30}