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