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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.2.2";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "ledger_bitcoin";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-MEZuwIthIOwBkRdR7dEsEznO+GVBeOf7/5xmwNW1SvI=";
|
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;
|
|
|
|
};
|
|
|
|
}
|