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

27 lines
775 B
Nix
Raw Normal View History

{ lib, fetchPypi, buildPythonPackage,
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1
}:
2017-03-11 04:49:23 -08:00
buildPythonPackage rec {
name = "${pname}-${version}";
2017-03-11 04:49:23 -08:00
pname = "trezor";
2018-02-17 05:23:04 -08:00
version = "0.9.0";
2017-03-11 04:49:23 -08:00
src = fetchPypi {
inherit pname version;
2018-02-17 05:23:04 -08:00
sha256 = "2dd01e11d669cb8f5e40fcf1748bcabc41fb5f41edb010fc807dc3088f9bd7de";
2017-03-11 04:49:23 -08:00
};
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 ];
2017-03-11 04:49:23 -08:00
# 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
};
}