Skip to content

Commit

Permalink
pythonPackages.ledgerwallet: init at 0.1.2 (#104506)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
  • Loading branch information
xwvvvvwx and SuperSandro2000 committed Dec 7, 2020
1 parent d1d1772 commit 3ef8d3e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/python-modules/ledgerwallet/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv
, 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" ];

meta = with stdenv.lib; {
homepage = "https://github.com/LedgerHQ/ledgerctl";
description = "A library to control Ledger devices";
license = licenses.mit;
maintainers = with maintainers; [ xwvvvvwx ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,10 @@ in {

ledgerblue = callPackage ../development/python-modules/ledgerblue { };

ledgerwallet = callPackage ../development/python-modules/ledgerwallet {
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
};

lektor = callPackage ../development/python-modules/lektor { };

leveldb = callPackage ../development/python-modules/leveldb { };
Expand Down

0 comments on commit 3ef8d3e

Please sign in to comment.