Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / ledgerwallet / default.nix
blob42bc0c39129502c0716319cf403197c545372a68
1 { lib, stdenv
2 , fetchFromGitHub
3 , buildPythonPackage
4 , cryptography
5 , click
6 , construct
7 , ecdsa
8 , hidapi
9 , intelhex
10 , pillow
11 , protobuf
12 , requests
13 , tabulate
14 , AppKit
17 buildPythonPackage rec {
18   pname = "ledgerwallet";
19   version = "0.1.2";
21   src = fetchFromGitHub {
22     owner = "LedgerHQ";
23     repo = "ledgerctl";
24     rev = "v${version}";
25     sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
26   };
28   buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
29   propagatedBuildInputs = [
30     cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
31   ];
33   pythonImportsCheck = [ "ledgerwallet" ];
35   meta = with lib; {
36     homepage = "https://github.com/LedgerHQ/ledgerctl";
37     description = "A library to control Ledger devices";
38     license = licenses.mit;
39     maintainers = with maintainers; [ xwvvvvwx ];
40   };