about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ledger-bitcoin/default.nix
blob: 8298da004ccffbf23f18be3f2736d1a85904f455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, ledgercomm
, packaging
, bip32
, coincurve
, typing-extensions
 }:

buildPythonPackage rec {
  pname = "ledger-bitcoin";
  version = "0.3.0";
  format = "pyproject";

  src = fetchPypi {
    inherit version;
    pname = "ledger_bitcoin";
    hash = "sha256-rZzerzOkVWK71brmdRAluGmi+B1usCZ90GKgH1klpNU=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    ledgercomm
    packaging
    bip32
    coincurve
    typing-extensions
  ];

  pythonImportsCheck = [
    "ledger_bitcoin"
  ];

  meta = with lib; {
    description = "Client library for Ledger Bitcoin application.";
    homepage = "https://github.com/LedgerHQ/app-bitcoin-new/tree/develop/bitcoin_client/ledger_bitcoin";
    license = licenses.asl20;
  };
}