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