git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #52741 from prusnak/python-trezor

pythonPackages: trezor: 0.10.2 -> 0.11.1

commit20343f0ab476886a20e530a54bd9695efaa3c7b9 authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 23 Jan 2019, 13:46 (8 years ago) parentb4cd25cbdb81a8
1 file changed+29−8
pkgs/development/python-modules/trezor/default.nix+29−8
pkgs/development/python-modules/trezor/default.nix+29−8
@@ -1,27 +1,48 @@
1−{ lib, fetchPypi, buildPythonPackage,
2− protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k
1+{ lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
2+, typing-extensions
3+, protobuf
4+, hidapi
5+, ecdsa
6+, mnemonic
7+, requests
8+, pyblake2
9+, click
10+, construct
11+, libusb1
12+, rlp
313}:
414
515buildPythonPackage rec {
616 pname = "trezor";
7− version = "0.10.2";
17+ version = "0.11.1";
818
919 disabled = !isPy3k;
1020
1121 src = fetchPypi {
1222 inherit pname version;
13− sha256 = "4dba4d5c53d3ca22884d79fb4aa68905fb8353a5da5f96c734645d8cf537138d";
23+ sha256 = "6043f321d856e1b45b9df0c37810264f08d065bb56cd999f61a05fe2906e9e18";
1424 };
1525
16− propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
26+ propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp ];
1727
18− # There are no actual tests: "ImportError: No module named tests"
19− doCheck = false;
28+ # build requires UTF-8 locale
29+ LANG = "en_US.UTF-8";
30+
31+ checkInputs = [
32+ pytest
33+ ];
34+
35+ # disable test_tx_api.py as it requires being online
36+ checkPhase = ''
37+ runHook preCheck
38+ ${python.interpreter} -m pytest --pyarg trezorlib.tests.unit_tests --ignore trezorlib/tests/unit_tests/test_tx_api.py
39+ runHook postCheck
40+ '';
2041
2142 meta = {
2243 description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
2344 homepage = https://github.com/trezor/python-trezor;
2445 license = lib.licenses.gpl3;
25− maintainers = with lib.maintainers; [ np ];
46+ maintainers = with lib.maintainers; [ np prusnak ];
2647 };
2748}