2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-12-07 19:11:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, click
|
|
|
|
, construct
|
|
|
|
, ecdsa
|
|
|
|
, hidapi
|
|
|
|
, intelhex
|
|
|
|
, pillow
|
|
|
|
, protobuf
|
|
|
|
, requests
|
|
|
|
, tabulate
|
|
|
|
, AppKit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ledgerwallet";
|
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LedgerHQ";
|
|
|
|
repo = "ledgerctl";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ledgerwallet" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 19:11:03 +00:00
|
|
|
homepage = "https://github.com/LedgerHQ/ledgerctl";
|
|
|
|
description = "A library to control Ledger devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ xwvvvvwx ];
|
|
|
|
};
|
|
|
|
}
|