electrum: fix ledger devices support
New Ledger protocol needs a new dependency to work https://github.com/spesmilo/electrum/pull/8041
This commit is contained in:
parent
5b04692dc2
commit
51b96d8e85
4 changed files with 75 additions and 0 deletions
|
@ -72,6 +72,7 @@ python3.pkgs.buildPythonApplication {
|
||||||
tlslite-ng
|
tlslite-ng
|
||||||
# plugins
|
# plugins
|
||||||
btchip-python
|
btchip-python
|
||||||
|
ledger-bitcoin
|
||||||
ckcc-protocol
|
ckcc-protocol
|
||||||
keepkey
|
keepkey
|
||||||
trezor
|
trezor
|
||||||
|
|
40
pkgs/development/python-modules/ledger-bitcoin/default.nix
Normal file
40
pkgs/development/python-modules/ledger-bitcoin/default.nix
Normal file
|
@ -0,0 +1,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;
|
||||||
|
};
|
||||||
|
}
|
30
pkgs/development/python-modules/ledgercomm/default.nix
Normal file
30
pkgs/development/python-modules/ledgercomm/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "ledgercomm";
|
||||||
|
version = "1.1.2";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
hash = "sha256-izOPbwv+34Xq8mpq9+QRIGhd+z4pVnGJSMnYOktRVbs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ledgercomm"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python library to send and receive APDU through HID or TCP socket. It can be used with a Ledger Nano S/X or with the Speculos emulator.";
|
||||||
|
homepage = "https://github.com/LedgerHQ/ledgercomm";
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5426,8 +5426,12 @@ self: super: with self; {
|
||||||
|
|
||||||
ledger_agent = callPackage ../development/python-modules/ledger_agent { };
|
ledger_agent = callPackage ../development/python-modules/ledger_agent { };
|
||||||
|
|
||||||
|
ledger-bitcoin = callPackage ../development/python-modules/ledger-bitcoin { };
|
||||||
|
|
||||||
ledgerblue = callPackage ../development/python-modules/ledgerblue { };
|
ledgerblue = callPackage ../development/python-modules/ledgerblue { };
|
||||||
|
|
||||||
|
ledgercomm = callPackage ../development/python-modules/ledgercomm { };
|
||||||
|
|
||||||
ledgerwallet = callPackage ../development/python-modules/ledgerwallet {
|
ledgerwallet = callPackage ../development/python-modules/ledgerwallet {
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
|
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue