nixpkgs/pkgs/development/python-modules/ledger-bitcoin/default.nix
Dmitry Ivankov 51b96d8e85 electrum: fix ledger devices support
New Ledger protocol needs a new dependency to work
https://github.com/spesmilo/electrum/pull/8041
2023-04-24 19:32:21 +02:00

40 lines
757 B
Nix

{ 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;
};
}