pythonPackages: trezor: 0.10.2 -> 0.11.1

This commit is contained in:
Pavol Rusnak 2018-12-23 22:50:58 +01:00 committed by Pavol Rusnak
parent 9acc5d9b45
commit bdb81a8d29
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,27 +1,48 @@
{ lib, fetchPypi, buildPythonPackage, { lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k , typing-extensions
, protobuf
, hidapi
, ecdsa
, mnemonic
, requests
, pyblake2
, click
, construct
, libusb1
, rlp
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "trezor"; pname = "trezor";
version = "0.10.2"; version = "0.11.1";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4dba4d5c53d3ca22884d79fb4aa68905fb8353a5da5f96c734645d8cf537138d"; sha256 = "6043f321d856e1b45b9df0c37810264f08d065bb56cd999f61a05fe2906e9e18";
}; };
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ]; propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp ];
# There are no actual tests: "ImportError: No module named tests" # build requires UTF-8 locale
doCheck = false; LANG = "en_US.UTF-8";
checkInputs = [
pytest
];
# disable test_tx_api.py as it requires being online
checkPhase = ''
runHook preCheck
${python.interpreter} -m pytest --pyarg trezorlib.tests.unit_tests --ignore trezorlib/tests/unit_tests/test_tx_api.py
runHook postCheck
'';
meta = { meta = {
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet"; description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
homepage = https://github.com/trezor/python-trezor; homepage = https://github.com/trezor/python-trezor;
license = lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ np ]; maintainers = with lib.maintainers; [ np prusnak ];
}; };
} }