2017-09-05 16:11:41 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, protobuf, hidapi, ecdsa, mnemonic
|
2017-06-22 13:27:11 +01:00
|
|
|
, requests
|
|
|
|
}:
|
2017-03-11 12:49:23 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-31 21:40:14 +01:00
|
|
|
name = "${pname}-${version}";
|
2017-03-11 12:49:23 +00:00
|
|
|
pname = "trezor";
|
2017-07-28 15:49:08 +01:00
|
|
|
version = "0.7.16";
|
2017-03-11 12:49:23 +00:00
|
|
|
|
2017-05-31 21:40:14 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-07-28 15:49:08 +01:00
|
|
|
sha256 = "6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314";
|
2017-03-11 12:49:23 +00:00
|
|
|
};
|
|
|
|
|
2017-10-26 21:47:21 +01:00
|
|
|
propagatedBuildInputs = [ protobuf hidapi requests mnemonic ];
|
2017-03-11 12:49:23 +00:00
|
|
|
|
2017-10-26 21:47:21 +01:00
|
|
|
buildInputs = [ ecdsa ];
|
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
|
|
|
};
|
|
|
|
}
|