1{ lib
2, bleak
3, buildPythonPackage
4, ecpy
5, fetchPypi
6, future
7, hidapi
8, nfcpy
9, pillow
10, protobuf
11, pycrypto
12, pycryptodomex
13, pyelftools
14, python-u2flib-host
15, pythonOlder
16, websocket-client
17}:
18
19buildPythonPackage rec {
20 pname = "ledgerblue";
21 version = "0.1.47";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-xe8ude2JzrdmJqwzqLlxRO697IjcGuQgGG6c3nQ/drg=";
29 };
30
31 propagatedBuildInputs = [
32 bleak
33 ecpy
34 future
35 hidapi
36 nfcpy
37 pillow
38 protobuf
39 pycrypto
40 pycryptodomex
41 pyelftools
42 python-u2flib-host
43 websocket-client
44 ];
45
46 # No tests
47 doCheck = false;
48
49 pythonImportsCheck = [
50 "ledgerblue"
51 ];
52
53 meta = with lib; {
54 description = "Python library to communicate with Ledger Blue/Nano S";
55 homepage = "https://github.com/LedgerHQ/blue-loader-python";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ np ];
58 };
59}