Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ledgerblue / default.nix
blob9342f8d3b5da8691cf8afc9956c6faba80547e00
1 { lib
2 , stdenv
3 , bleak
4 , buildPythonPackage
5 , ecpy
6 , fetchPypi
7 , future
8 , hidapi
9 , nfcpy
10 , pillow
11 , protobuf
12 , pycrypto
13 , pycryptodomex
14 , pyelftools
15 , python-u2flib-host
16 , pythonOlder
17 , websocket-client
20 buildPythonPackage rec {
21   pname = "ledgerblue";
22   version = "0.1.48";
23   format = "setuptools";
25   disabled = pythonOlder "3.7";
27   src = fetchPypi {
28     inherit pname version;
29     hash = "sha256-LVRNcsTmJOR3zTBhbKV4V0zCQk0sk/Uf6kSmfbAhgfY=";
30   };
32   propagatedBuildInputs = [
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   ++ lib.optionals stdenv.isLinux [
46     bleak
47   ];
49   # No tests
50   doCheck = false;
52   pythonImportsCheck = [
53     "ledgerblue"
54   ];
56   meta = with lib; {
57     description = "Python library to communicate with Ledger Blue/Nano S";
58     homepage = "https://github.com/LedgerHQ/blue-loader-python";
59     license = licenses.asl20;
60     maintainers = with maintainers; [ np ];
61   };