1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/python-modules/trezor/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, fetchPypi, buildPythonPackage, isPy3k, python, pytest
, typing-extensions
, protobuf
, hidapi
, ecdsa
, mnemonic
, requests
, pyblake2
, click
, construct
, libusb1
, rlp
, shamir-mnemonic
, trezor-udev-rules
}:
2017-03-11 12:49:23 +00:00
buildPythonPackage rec {
pname = "trezor";
version = "0.11.6";
2017-03-11 12:49:23 +00:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1i73j812i0dgjw9n106pipc6qksd9cgs59d0as0b4j5iyl0087hh";
2017-03-11 12:49:23 +00:00
};
propagatedBuildInputs = [ typing-extensions protobuf hidapi ecdsa mnemonic requests pyblake2 click construct libusb1 rlp shamir-mnemonic trezor-udev-rules ];
2017-03-11 12:49:23 +00:00
checkInputs = [
pytest
];
# disable test_tx_api.py as it requires being online
checkPhase = ''
runHook preCheck
2019-09-26 16:48:42 +01:00
pytest --pyargs tests --ignore tests/test_tx_api.py
runHook postCheck
'';
2017-03-11 12:49:23 +00:00
meta = with lib; {
2017-03-11 12:49:23 +00:00
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" ];
2017-03-11 12:49:23 +00:00
};
}