Merge pull request #326022 from tobim/pkgs/ledgerwallet-0.5

python3Packages.ledgerwallet: 0.2.4 -> 0.5.0
This commit is contained in:
Sandro 2024-07-21 21:36:52 +02:00 committed by GitHub
commit 78ccf88c32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,13 +7,13 @@
click,
construct,
ecdsa,
flit-core,
hidapi,
intelhex,
pillow,
protobuf3,
protobuf,
requests,
setuptools,
setuptools-scm,
tabulate,
toml,
AppKit,
@ -21,19 +21,19 @@
buildPythonPackage rec {
pname = "ledgerwallet";
version = "0.2.4";
version = "0.5.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "LedgerHQ";
repo = "ledgerctl";
rev = "v${version}";
hash = "sha256-IcStYYkKEdZxwgJKL8l2Y1BtO/Oncd4aKUAZD8umbHs=";
hash = "sha256-PBULYvyO3+YaW+a1/enJtKB/DR4ndL/o/WdpETbWyZ0=";
};
buildInputs = [
flit-core
setuptools
setuptools-scm
] ++ lib.optionals stdenv.isDarwin [ AppKit ];
propagatedBuildInputs = [
cryptography
@ -43,12 +43,23 @@ buildPythonPackage rec {
hidapi
intelhex
pillow
protobuf3
protobuf
requests
tabulate
toml
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"protobuf >=3.20,<4"' '"protobuf >=3.20"'
'';
# Regenerate protobuf bindings to lift the version upper-bound and enable
# compatibility the current default protobuf library.
preBuild = ''
protoc --python_out=. --pyi_out=. ledgerwallet/proto/*.proto
'';
pythonImportsCheck = [ "ledgerwallet" ];
meta = with lib; {