mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-24 16:38:15 +00:00
chore: update dependencies
[no changelog] Co-Authored-By: Martin Milata <martin@martinmilata.cz>
This commit is contained in:
parent
aff3f512c4
commit
b9bbd5fcd7
@ -1,12 +1,14 @@
|
|||||||
{ pkgs, nodejs, stdenv, lib, ... }:
|
{ pkgs, nodejs-14_x, stdenv, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
||||||
|
|
||||||
nodePackages = import ./node-composition.nix {
|
nodePackages = import ./node-composition.nix {
|
||||||
inherit pkgs nodejs;
|
inherit pkgs;
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
|
# FIXME: drop after https://github.com/NixOS/nixpkgs/issues/145432 is fixed
|
||||||
|
nodejs = nodejs-14_x;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
nodePackages."${packageName}".override {
|
nodePackages."${packageName}".override {
|
||||||
|
21
ci/shell.nix
21
ci/shell.nix
@ -3,15 +3,15 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# the last commit from master as of 2021-12-06
|
# the last commit from master as of 2022-02-08
|
||||||
rustOverlay = import (builtins.fetchTarball {
|
rustOverlay = import (builtins.fetchTarball {
|
||||||
url = "https://github.com/oxalica/rust-overlay/archive/96f1bd1ec11d9c9e8b41c7560df9efae8d091908.tar.gz";
|
url = "https://github.com/oxalica/rust-overlay/archive/2eae19e246433530998cbf239d5505b7b87bc854.tar.gz";
|
||||||
sha256 = "07qfya55d3lw4mblm62ykx8h9zg2ms3891ik30qzzpywwacafi8j";
|
sha256 = "0panx24sqcvx52wza02zsxmpkhg6xld7hklrv7dybc59akqm2ira";
|
||||||
});
|
});
|
||||||
# the last successful build of nixpkgs-unstable as of 2021-11-18
|
# the last successful build of nixpkgs-unstable as of 2022-02-10
|
||||||
nixpkgs = import (builtins.fetchTarball {
|
nixpkgs = import (builtins.fetchTarball {
|
||||||
url = "https://github.com/NixOS/nixpkgs/archive/7fad01d9d5a3f82081c00fb57918d64145dc904c.tar.gz";
|
url = "https://github.com/NixOS/nixpkgs/archive/1882c6b7368fd284ad01b0a5b5601ef136321292.tar.gz";
|
||||||
sha256 = "0g0jn8cp1f3zgs7xk2xb2vwa44gb98qlp7k0dvigs0zh163c2kim";
|
sha256 = "0zg7ak2mcmwzi2kg29g4v9fvbvs0viykjsg2pwaphm1fi13s7s0i";
|
||||||
}) { overlays = [ rustOverlay ]; };
|
}) { overlays = [ rustOverlay ]; };
|
||||||
# commit before python36 was removed
|
# commit before python36 was removed
|
||||||
python36nixpkgs = import (builtins.fetchTarball {
|
python36nixpkgs = import (builtins.fetchTarball {
|
||||||
@ -28,7 +28,7 @@ let
|
|||||||
${nixpkgs.patchelf}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out"
|
${nixpkgs.patchelf}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out"
|
||||||
chmod -w $out
|
chmod -w $out
|
||||||
'';
|
'';
|
||||||
rustStable = nixpkgs.rust-bin.stable."1.57.0".minimal.override {
|
rustStable = nixpkgs.rust-bin.stable."1.58.1".minimal.override {
|
||||||
targets = [
|
targets = [
|
||||||
"thumbv7em-none-eabihf" # TT
|
"thumbv7em-none-eabihf" # TT
|
||||||
"thumbv7m-none-eabi" # T1
|
"thumbv7m-none-eabi" # T1
|
||||||
@ -38,7 +38,7 @@ let
|
|||||||
extensions = [ "clippy" ];
|
extensions = [ "clippy" ];
|
||||||
};
|
};
|
||||||
gcc = nixpkgs.gcc11;
|
gcc = nixpkgs.gcc11;
|
||||||
llvmPackages = nixpkgs.llvmPackages_12;
|
llvmPackages = nixpkgs.llvmPackages_13;
|
||||||
# see pyright/README.md for update procedure
|
# see pyright/README.md for update procedure
|
||||||
pyright = nixpkgs.callPackage ./pyright {};
|
pyright = nixpkgs.callPackage ./pyright {};
|
||||||
# HWI tests need https://github.com/bitcoin/bitcoin/pull/22558
|
# HWI tests need https://github.com/bitcoin/bitcoin/pull/22558
|
||||||
@ -60,9 +60,10 @@ stdenvNoCC.mkDerivation ({
|
|||||||
bitcoind
|
bitcoind
|
||||||
# install other python versions for tox testing
|
# install other python versions for tox testing
|
||||||
# NOTE: running e.g. "python3" in the shell runs the first version in the following list,
|
# NOTE: running e.g. "python3" in the shell runs the first version in the following list,
|
||||||
# and poetry uses the default version (currently 3.8)
|
# and poetry uses the default version (currently 3.9)
|
||||||
python38
|
|
||||||
python39
|
python39
|
||||||
|
python310
|
||||||
|
python38
|
||||||
python37
|
python37
|
||||||
python36nixpkgs.python36
|
python36nixpkgs.python36
|
||||||
] ++ [
|
] ++ [
|
||||||
|
@ -772,7 +772,7 @@ class Bitcoin:
|
|||||||
return SigHashType.SIGHASH_ALL
|
return SigHashType.SIGHASH_ALL
|
||||||
|
|
||||||
def get_sighash_type(self, txi: TxInput) -> SigHashType:
|
def get_sighash_type(self, txi: TxInput) -> SigHashType:
|
||||||
""" Return the nHashType flags."""
|
"""Return the nHashType flags."""
|
||||||
# The nHashType is the 8 least significant bits of the sighash type.
|
# The nHashType is the 8 least significant bits of the sighash type.
|
||||||
# Some coins set the 24 most significant bits of the sighash type to
|
# Some coins set the 24 most significant bits of the sighash type to
|
||||||
# the fork ID value.
|
# the fork ID value.
|
||||||
|
@ -77,7 +77,6 @@ if not utils.BITCOIN_ONLY:
|
|||||||
assert common_seed is not None
|
assert common_seed is not None
|
||||||
return common_seed
|
return common_seed
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# === Bitcoin-only variant ===
|
# === Bitcoin-only variant ===
|
||||||
# We use the simple version of `get_seed` that never needs to derive anything else.
|
# We use the simple version of `get_seed` that never needs to derive anything else.
|
||||||
|
@ -44,7 +44,6 @@ if __debug__:
|
|||||||
display.bar(Display.WIDTH - side, 0, side, side, 0xF800)
|
display.bar(Display.WIDTH - side, 0, side, side, 0xF800)
|
||||||
display.refresh()
|
display.refresh()
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
refresh = display.refresh # type: ignore
|
refresh = display.refresh # type: ignore
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ if __debug__:
|
|||||||
def __exit__(self, exc_type: Any, value: Any, traceback: Any) -> None:
|
def __exit__(self, exc_type: Any, value: Any, traceback: Any) -> None:
|
||||||
self.in_use = False
|
self.in_use = False
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
class BufferLock:
|
class BufferLock:
|
||||||
|
1181
poetry.lock
generated
1181
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@ authors = ["SatoshiLabs <info@satoshilabs.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
# all
|
# all
|
||||||
python = "^3.6"
|
python = "^3.7"
|
||||||
trezor = {path = "./python", develop = true}
|
trezor = {path = "./python", develop = true}
|
||||||
scons = "*"
|
scons = "*"
|
||||||
protobuf = "*"
|
protobuf = "*"
|
||||||
@ -54,7 +54,7 @@ click = "^7"
|
|||||||
ed25519 = "^1.4"
|
ed25519 = "^1.4"
|
||||||
requests = "^2.19"
|
requests = "^2.19"
|
||||||
termcolor = "*"
|
termcolor = "*"
|
||||||
Pillow = "^8.0"
|
Pillow = "^9"
|
||||||
|
|
||||||
# crypto
|
# crypto
|
||||||
ecdsa = "^0.16"
|
ecdsa = "^0.16"
|
||||||
|
@ -107,7 +107,7 @@ __b58base = len(__b58chars)
|
|||||||
|
|
||||||
|
|
||||||
def b58encode(v: bytes) -> str:
|
def b58encode(v: bytes) -> str:
|
||||||
""" encode v, which is a string of bytes, to base58."""
|
"""encode v, which is a string of bytes, to base58."""
|
||||||
|
|
||||||
long_value = 0
|
long_value = 0
|
||||||
for c in v:
|
for c in v:
|
||||||
@ -133,7 +133,7 @@ def b58encode(v: bytes) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def b58decode(v: AnyStr, length: Optional[int] = None) -> bytes:
|
def b58decode(v: AnyStr, length: Optional[int] = None) -> bytes:
|
||||||
""" decode v into a string of len bytes."""
|
"""decode v into a string of len bytes."""
|
||||||
str_v = v.decode() if isinstance(v, bytes) else v
|
str_v = v.decode() if isinstance(v, bytes) else v
|
||||||
|
|
||||||
for c in str_v:
|
for c in str_v:
|
||||||
|
@ -4,6 +4,7 @@ envlist =
|
|||||||
py37,
|
py37,
|
||||||
py38,
|
py38,
|
||||||
py39,
|
py39,
|
||||||
|
py310
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
|
Loading…
Reference in New Issue
Block a user