uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
79
pkgs/development/python-modules/trezor/default.nix
Normal file
79
pkgs/development/python-modules/trezor/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, installShellFiles
|
||||
, attrs
|
||||
, click
|
||||
, construct
|
||||
, ecdsa
|
||||
, hidapi
|
||||
, libusb1
|
||||
, mnemonic
|
||||
, pillow
|
||||
, protobuf
|
||||
, pyblake2
|
||||
, requests
|
||||
, rlp
|
||||
, shamir-mnemonic
|
||||
, typing-extensions
|
||||
, trezor-udev-rules
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trezor";
|
||||
version = "0.13.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4571aa09dbfe88b31eb2f16c7c359b4809621b75a04b7b5bc9dbffe17046c99a";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
click
|
||||
construct
|
||||
ecdsa
|
||||
hidapi
|
||||
libusb1
|
||||
mnemonic
|
||||
pillow
|
||||
protobuf
|
||||
pyblake2
|
||||
requests
|
||||
rlp
|
||||
shamir-mnemonic
|
||||
typing-extensions
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
trezor-udev-rules
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/test_stellar.py" # requires stellar-sdk
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
mkdir completions
|
||||
_TREZORCTL_COMPLETE=source_bash $out/bin/trezorctl > completions/trezorctl || true
|
||||
_TREZORCTL_COMPLETE=source_zsh $out/bin/trezorctl > completions/_trezorctl || true
|
||||
_TREZORCTL_COMPLETE=source_fish $out/bin/trezorctl > completions/trezorctl.fish || true
|
||||
installShellCompletion --bash completions/trezorctl
|
||||
installShellCompletion --zsh completions/_trezorctl
|
||||
installShellCompletion --fish completions/trezorctl.fish
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for communicating with Trezor Hardware Wallet";
|
||||
homepage = "https://github.com/trezor/trezor-firmware/tree/master/python";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ np prusnak mmahut _1000101 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue