2017-06-22 14:27:11 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, protobuf3_2, hidapi, ecdsa, mnemonic
|
|
|
|
, requests
|
|
|
|
}:
|
2017-03-11 13:49:23 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-31 22:40:14 +02:00
|
|
|
name = "${pname}-${version}";
|
2017-03-11 13:49:23 +01:00
|
|
|
pname = "trezor";
|
2017-06-19 13:43:19 +02:00
|
|
|
version = "0.7.15";
|
2017-03-11 13:49:23 +01:00
|
|
|
|
2017-05-31 22:40:14 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-06-19 13:43:19 +02:00
|
|
|
sha256 = "f7e4f509263ca172532b4c0a440d164add7cdc021b4370a253d51eba5806b618";
|
2017-03-11 13:49:23 +01:00
|
|
|
};
|
|
|
|
|
2017-06-22 14:27:11 +02:00
|
|
|
propagatedBuildInputs = [ protobuf3_2 hidapi requests ];
|
2017-03-11 13:49:23 +01:00
|
|
|
|
|
|
|
buildInputs = [ ecdsa mnemonic ];
|
|
|
|
|
|
|
|
# There are no actual tests: "ImportError: No module named tests"
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-31 08:33:02 +02:00
|
|
|
meta = {
|
2017-03-11 13:49:23 +01:00
|
|
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
|
|
homepage = https://github.com/trezor/python-trezor;
|
2017-05-31 08:33:02 +02:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ np ];
|
2017-03-11 13:49:23 +01:00
|
|
|
};
|
|
|
|
}
|