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
|
2017-05-31 21:25:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ledgerblue";
|
2018-10-06 11:56:18 +01:00
|
|
|
version = "0.1.20";
|
2017-05-31 21:25:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-06 11:56:18 +01:00
|
|
|
sha256 = "fb7ac6389ad13d3c9baa149b527e2cb5798e749e2b6729e5fe8437092ece6164";
|
2017-05-31 21:25:39 +01:00
|
|
|
};
|
|
|
|
|
2018-08-26 13:16:08 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2017-08-01 21:03:30 +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 ];
|
|
|
|
};
|
|
|
|
}
|