summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ledger-bitcoin/default.nix
blob: 5c0d96015904f7a2f97cb5a2f6a71c2186b0cb87 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  ledgercomm,
  packaging,
  bip32,
  coincurve,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "ledger-bitcoin";
  version = "0.4.0";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "ledger_bitcoin";
    hash = "sha256-IkJFLnjPS1fIuNNQnoMYYP1IUbChv6uV8vXj9H1NFQA=";
  };

  nativeBuildInputs = [ setuptools ];

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

  pythonImportsCheck = [ "ledger_bitcoin" ];

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