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

27 lines
758 B
Nix
Raw Normal View History

2017-05-31 06:33:02 +00:00
{ lib, fetchurl, buildPythonPackage, protobuf3_0, hidapi, ecdsa, mnemonic }:
2017-03-11 12:49:23 +00:00
buildPythonPackage rec {
pname = "trezor";
version = "0.7.13";
2017-03-11 12:49:23 +00:00
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/t/${pname}/${name}.tar.gz";
sha256 = "d05f388bb56b6f61cc727999cc725078575238a0b6172450322bc55c437fefe5";
2017-03-11 12:49:23 +00:00
};
propagatedBuildInputs = [ protobuf3_0 hidapi ];
buildInputs = [ ecdsa mnemonic ];
# There are no actual tests: "ImportError: No module named tests"
doCheck = false;
2017-05-31 06:33:02 +00:00
meta = {
2017-03-11 12:49:23 +00:00
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor;
2017-05-31 06:33:02 +00:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ np ];
2017-03-11 12:49:23 +00:00
};
}