mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 02:24:30 +00:00
Merge pull request #326022 from tobim/pkgs/ledgerwallet-0.5
python3Packages.ledgerwallet: 0.2.4 -> 0.5.0
This commit is contained in:
commit
78ccf88c32
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user