2018-02-22 10:55:44 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage,
|
2018-04-13 19:35:53 +02:00
|
|
|
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp
|
2017-06-22 14:27:11 +02:00
|
|
|
}:
|
2017-03-11 13:49:23 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trezor";
|
2018-04-04 20:18:11 +02:00
|
|
|
version = "0.9.1";
|
2017-03-11 13:49:23 +01:00
|
|
|
|
2017-05-31 22:40:14 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 20:18:11 +02:00
|
|
|
sha256 = "a481191011bade98f1e9f1201e7c72a83945050657bbc90dc4ac32dc8b8b46a4";
|
2017-03-11 13:49:23 +01:00
|
|
|
};
|
|
|
|
|
2018-04-13 19:35:53 +02:00
|
|
|
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
|
2017-03-11 13:49:23 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
};
|
|
|
|
}
|