Merge pull request #146447 from smancill/zhf-ledgerwallet
python3Packages.ledgerwallet: fix build
This commit is contained in:
commit
8d0389b025
@ -25,6 +25,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix removed function in construct library
|
||||||
|
# https://github.com/LedgerHQ/ledgerctl/issues/17
|
||||||
|
# https://github.com/construct/construct/commit/8915512f53552b1493afdbce5bbf8bb6f2aa4411
|
||||||
|
./remove-iterateints.patch
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
--- a/ledgerwallet/params.py 2021-11-17 20:31:10.488954050 -0300
|
||||||
|
+++ b/ledgerwallet/params.py 2021-11-17 20:31:30.619477930 -0300
|
||||||
|
@@ -19,7 +19,6 @@
|
||||||
|
)
|
||||||
|
from construct.core import (
|
||||||
|
byte2int,
|
||||||
|
- iterateints,
|
||||||
|
singleton,
|
||||||
|
stream_read,
|
||||||
|
stream_write,
|
||||||
|
@@ -40,7 +39,7 @@
|
||||||
|
num_bytes = byte & 0x80
|
||||||
|
encoded_len = stream_read(stream, num_bytes)
|
||||||
|
num = 0
|
||||||
|
- for len_byte in iterateints(encoded_len):
|
||||||
|
+ for len_byte in encoded_len:
|
||||||
|
num = num << 8 + len_byte
|
||||||
|
return num
|
||||||
|
|
Loading…
Reference in New Issue
Block a user