2017-05-31 21:25:39 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, hidapi
|
2018-08-26 13:16:08 +01:00
|
|
|
, pycrypto, pillow, protobuf, future, ecpy, python-u2flib-host, pycryptodomex
|
2019-09-18 14:52:37 +01:00
|
|
|
, websocket_client
|
2017-05-31 21:25:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ledgerblue";
|
2019-11-19 14:35:37 +00:00
|
|
|
version = "0.1.31";
|
2017-05-31 21:25:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:37 +00:00
|
|
|
sha256 = "f1fc7ab685780309a7220c6ee517d88072cc594a9615bcc18e68ed5f149fa432";
|
2017-05-31 21:25:39 +01:00
|
|
|
};
|
|
|
|
|
2018-08-26 13:16:08 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-09-18 14:52:37 +01:00
|
|
|
hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex websocket_client
|
2018-08-26 13:16:08 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
2017-05-31 21:25:39 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python library to communicate with Ledger Blue/Nano S";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/LedgerHQ/blue-loader-python";
|
2017-05-31 21:25:39 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|