mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
Merge pull request #231506 from erdnaxe/ledgerwalletupdate
python310Packages.ledgerwallet: 0.1.2 -> 0.2.4
This commit is contained in:
commit
96922489f1
@ -1,4 +1,5 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, buildPythonPackage
|
||||
@ -6,38 +7,43 @@
|
||||
, click
|
||||
, construct
|
||||
, ecdsa
|
||||
, flit-core
|
||||
, hidapi
|
||||
, intelhex
|
||||
, pillow
|
||||
, protobuf
|
||||
, protobuf3
|
||||
, requests
|
||||
, setuptools
|
||||
, tabulate
|
||||
, toml
|
||||
, AppKit
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ledgerwallet";
|
||||
version = "0.1.2";
|
||||
version = "0.2.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LedgerHQ";
|
||||
repo = "ledgerctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
||||
hash = "sha256-IcStYYkKEdZxwgJKL8l2Y1BtO/Oncd4aKUAZD8umbHs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Fix removed function in construct library
|
||||
url = "https://github.com/LedgerHQ/ledgerctl/commit/fd23d0e14721b93789071e80632e6bd9e47c1256.patch";
|
||||
hash = "sha256-YNlENguPQW5FNFT7mqED+ghF3TJiKao4H+56Eu+j+Eo=";
|
||||
excludes = [ "setup.py" ];
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
||||
buildInputs = [ flit-core setuptools ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
|
||||
propagatedBuildInputs = [
|
||||
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
||||
cryptography
|
||||
click
|
||||
construct
|
||||
ecdsa
|
||||
hidapi
|
||||
intelhex
|
||||
pillow
|
||||
protobuf3
|
||||
requests
|
||||
tabulate
|
||||
toml
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "ledgerwallet" ];
|
||||
@ -46,6 +52,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/LedgerHQ/ledgerctl";
|
||||
description = "A library to control Ledger devices";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ d-xo ];
|
||||
maintainers = with maintainers; [ d-xo erdnaxe ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user