mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
|
|
, typing-extensions
|
|
, protobuf
|
|
, hidapi
|
|
, ecdsa
|
|
, mnemonic
|
|
, requests
|
|
, pyblake2
|
|
, click
|
|
, construct
|
|
, libusb1
|
|
, rlp
|
|
, shamir-mnemonic
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trezor";
|
|
version = "0.11.5";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cd8aafd70a281daa644c4a3fb021ffac20b7a88e86226ecc8bb3e78e1734a184";
|
|
};
|
|
|
|
propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic ];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
# disable test_tx_api.py as it requires being online
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
pytest --pyargs tests --ignore tests/test_tx_api.py
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ np prusnak mmahut maintainers."1000101" ];
|
|
};
|
|
}
|