1{ lib, fetchPypi, buildPythonPackage,
2 protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k
3}:
4
5buildPythonPackage rec {
6 pname = "trezor";
7 version = "0.10.2";
8
9 disabled = !isPy3k;
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "4dba4d5c53d3ca22884d79fb4aa68905fb8353a5da5f96c734645d8cf537138d";
14 };
15
16 propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
17
18 # There are no actual tests: "ImportError: No module named tests"
19 doCheck = false;
20
21 meta = {
22 description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
23 homepage = https://github.com/trezor/python-trezor;
24 license = lib.licenses.gpl3;
25 maintainers = with lib.maintainers; [ np ];
26 };
27}