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