nixpkgs/pkgs/development/python-modules/trezor/default.nix

29 lines
748 B
Nix
Raw Normal View History

2017-09-05 08:11:41 -07:00
{ lib, fetchPypi, buildPythonPackage, protobuf, hidapi, ecdsa, mnemonic
, requests
}:
2017-03-11 04:49:23 -08:00
buildPythonPackage rec {
name = "${pname}-${version}";
2017-03-11 04:49:23 -08:00
pname = "trezor";
2017-07-28 07:49:08 -07:00
version = "0.7.16";
2017-03-11 04:49:23 -08:00
src = fetchPypi {
inherit pname version;
2017-07-28 07:49:08 -07:00
sha256 = "6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314";
2017-03-11 04:49:23 -08:00
};
2017-09-05 08:11:41 -07:00
propagatedBuildInputs = [ protobuf hidapi requests ];
2017-03-11 04:49:23 -08:00
buildInputs = [ ecdsa mnemonic ];
# There are no actual tests: "ImportError: No module named tests"
doCheck = false;
2017-05-30 23:33:02 -07:00
meta = {
2017-03-11 04:49:23 -08:00
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor;
2017-05-30 23:33:02 -07:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ np ];
2017-03-11 04:49:23 -08:00
};
}