ab418335c2
It seems as recent versions of `trezor` don't work with python 2.x: ``` /build/trezor-0.9.1/dist /build/trezor-0.9.1 Processing ./trezor-0.9.1-py2-none-any.whl trezor requires Python '>=3.3' but the running Python is 2.7.15 builder for '/nix/store/aqyxki0ckanjk4r1f0an4kj1w4s3kk4f-python2.7-trezor-0.9.1.drv' failed with exit code 1 cannot build derivation '/nix/store/gp4smkzc9r87lzajs17jnq4rh2ayc5q0-python2.7-keepkey-4.0.0.drv': 1 dependencies couldn't be built ```
27 lines
783 B
Nix
27 lines
783 B
Nix
{ lib, fetchPypi, buildPythonPackage,
|
|
protobuf, hidapi, ecdsa, mnemonic, requests, pyblake2, click, libusb1, rlp, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trezor";
|
|
version = "0.9.1";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a481191011bade98f1e9f1201e7c72a83945050657bbc90dc4ac32dc8b8b46a4";
|
|
};
|
|
|
|
propagatedBuildInputs = [ protobuf hidapi ecdsa mnemonic requests pyblake2 click libusb1 rlp ];
|
|
|
|
# There are no actual tests: "ImportError: No module named tests"
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
homepage = https://github.com/trezor/python-trezor;
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ np ];
|
|
};
|
|
}
|