2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, ledgercomm
|
|
|
|
, packaging
|
2023-11-16 04:20:00 +00:00
|
|
|
, bip32
|
|
|
|
, coincurve
|
2023-04-29 16:46:19 +00:00
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ledger-bitcoin";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.3.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "ledger_bitcoin";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-rZzerzOkVWK71brmdRAluGmi+B1usCZ90GKgH1klpNU=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ledgercomm
|
|
|
|
packaging
|
2023-11-16 04:20:00 +00:00
|
|
|
bip32
|
|
|
|
coincurve
|
2023-04-29 16:46:19 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|