2018-02-22 09:55:44 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage,
|
2018-07-17 22:15:57 +01:00
|
|
|
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k
|
2017-06-22 13:27:11 +01:00
|
|
|
}:
|
2017-03-11 12:49:23 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trezor";
|
2018-07-22 11:23:00 +01:00
|
|
|
version = "0.10.2";
|
2017-03-11 12:49:23 +00:00
|
|
|
|
2018-07-17 22:15:57 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2017-05-31 21:40:14 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:23:00 +01:00
|
|
|
sha256 = "4dba4d5c53d3ca22884d79fb4aa68905fb8353a5da5f96c734645d8cf537138d";
|
2017-03-11 12:49:23 +00:00
|
|
|
};
|
|
|
|
|
2018-04-13 18:35:53 +01:00
|
|
|
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
|
2017-03-11 12:49:23 +00:00
|
|
|
|
|
|
|
# There are no actual tests: "ImportError: No module named tests"
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-31 07:33:02 +01:00
|
|
|
meta = {
|
2017-03-11 12:49:23 +00:00
|
|
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
|
|
homepage = https://github.com/trezor/python-trezor;
|
2017-05-31 07:33:02 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ np ];
|
2017-03-11 12:49:23 +00:00
|
|
|
};
|
|
|
|
}
|