Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ledgerblue / default.nix
blob5a39ef7ecba47a5bd87d048f8ca025f673bb08fc
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
19 buildPythonPackage rec {
20   pname = "ledgerblue";
21   version = "0.1.48";
22   format = "setuptools";
24   disabled = pythonOlder "3.7";
26   src = fetchPypi {
27     inherit pname version;
28     hash = "sha256-LVRNcsTmJOR3zTBhbKV4V0zCQk0sk/Uf6kSmfbAhgfY=";
29   };
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   ];
46   # No tests
47   doCheck = false;
49   pythonImportsCheck = [
50     "ledgerblue"
51   ];
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   };