about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ledger-bitcoin/default.nix
blob: edfc9c7f22f2beb6facc9eeeba653d70ed38ccfa (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
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, ledgercomm
, packaging
, typing-extensions
 }:

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

  src = fetchPypi {
    inherit version;
    pname = "ledger_bitcoin";
    hash = "sha256-AWl/q2MzzspNIo6yf30S92PgM/Ygsb+1lJsg7Asztso=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    ledgercomm
    packaging
    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;
  };
}