blob: 4d9b14cda0f032ddc9c0e1f9e3d17882685ff399 (
plain)
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
41
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Client library for Ledger Bitcoin application"
HOMEPAGE="
https://pypi.org/project/ledger-bitcoin/
https://github.com/LedgerHQ/app-bitcoin-new
"
LICENSE="Apache-2.0 BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
# Tests require Speculos emulator, that cannot be packaged due to a dependency
# on dev-libs/openssl:0/1.1
# https://github.com/LedgerHQ/speculos/issues/447
RESTRICT="test"
RDEPEND="
>=dev-python/ledgercomm-1.1.0[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
"
python_prepare_all() {
# not used here and in revdeps
sed -i 's/from smartcard.*/raise ImportError/' \
ledger_bitcoin/btchip/btchipComm.py || die
# don't try using the Speculos emulator
sed -i 's/from speculos.*/raise ImportError/' \
ledger_bitcoin/client_base.py || die
distutils-r1_python_prepare_all
}
|