commit: f3aec41e5e79e844693418a37ba6d9c7a814a5bf
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 24 07:04:38 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 24 07:04:38 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3aec41e
net-misc/electrum: Bump to 4.7.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
net-misc/electrum/Manifest | 2 +
net-misc/electrum/electrum-4.7.0.ebuild | 126 ++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
index 93a1728ae061..5c24327ede7e 100644
--- a/net-misc/electrum/Manifest
+++ b/net-misc/electrum/Manifest
@@ -1,2 +1,4 @@
DIST Electrum-4.6.2.tar.gz 15020844 BLAKE2B
1a83f329167510670f4c01e097a6834fb417bf6967dd1a698af9d4c8053d8318ae2a649137420c88f8baaaecb065723c7bf5ba9f6a07e59825e50cb0ad19239f
SHA512
890c1fae4cd2da5f1fea3f07c1c6b537f9557177b86e23c40333ec83743ed46182ec74e43a27416a3eaa9704d87d0a1702d0a789b23467bcc68a17d638b43655
DIST Electrum-4.6.2.tar.gz.asc 2727 BLAKE2B
3f5e96a5516a5586e52ba767d2c08bf7aea5c99fdfce8f5082b8892617ee069395aa6d027359e9ff5ccb99c4a05ca805bdc6f2145523d23c4e2ea991b3e93430
SHA512
f8ca79a9ed785b939b832c0125edab8d6f00a8dbb79910bf3efd3c9a3b788e7be10dfa672730d54c3c805c1e83bd63f4584e20b6df2fa565a8984894e7d08166
+DIST Electrum-4.7.0.tar.gz 13905990 BLAKE2B
bb0b1314c11c4a41c544af1093a70f65d8a0682fad164aa594500ddf3b9eb38f0ed462ea3b082096e166737443782e34d9371c00e7dfa6d418f70bde04038ab1
SHA512
65eb30b70504953612e081763b9d0039eb4692d28b17cc25adf174f76ac51088b7f46b47fcbd7274bb377d77dbf3dab81fd8cfbc23fdf04b8afc0a8872227af5
+DIST Electrum-4.7.0.tar.gz.asc 2727 BLAKE2B
f184fbb013915d5f456901424ee316968b585b94525e2c0042a18b3b0cd682a6e5baff2f38a79e964e22ab55c268d030a11c7e67b55a2a4f44bfbcbe7bf98f17
SHA512
d8077a5741ca1df6c1322da42bded7e5455b032c83792d70e55cce48a0158b45ef1effdf52d17aa337bf2ff14df73fa72a1a48b01067a36f3fa3bb33956774dc
diff --git a/net-misc/electrum/electrum-4.7.0.ebuild
b/net-misc/electrum/electrum-4.7.0.ebuild
new file mode 100644
index 000000000000..688910235255
--- /dev/null
+++ b/net-misc/electrum/electrum-4.7.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+PYTHON_REQ_USE="ncurses?"
+
+inherit distutils-r1 eapi9-ver verify-sig xdg-utils
+
+MY_P=${P^}
+DESCRIPTION="User friendly Bitcoin client"
+HOMEPAGE="
+ https://electrum.org/
+ https://github.com/spesmilo/electrum/
+"
+SRC_URI="
+ https://download.electrum.org/${PV}/${MY_P}.tar.gz
+ verify-sig? (
+ https://download.electrum.org/${PV}/${MY_P}.tar.gz.asc
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli ncurses qrcode +qt6"
+REQUIRED_USE="|| ( cli ncurses qt6 )"
+
+# setuptools (distutils) & pyperclip vendored
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-python/aiohttp-3.11.0[${PYTHON_USEDEP}]
+ >=dev-python/aiohttp-socks-0.8.4[${PYTHON_USEDEP}]
+ =dev-python/aiorpcx-0.25*[${PYTHON_USEDEP}]
+ >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ >=dev-python/dnspython-2[${PYTHON_USEDEP}]
+ >=dev-python/electrum-ecc-0.0.4[${PYTHON_USEDEP}]
+ >=dev-python/electrum-aionostr-0.1.0[${PYTHON_USEDEP}]
+ dev-python/jsonpatch[${PYTHON_USEDEP}]
+ dev-python/pbkdf2[${PYTHON_USEDEP}]
+ >=dev-python/protobuf-3.20[${PYTHON_USEDEP}]
+ dev-python/pyperclip[${PYTHON_USEDEP}]
+ dev-python/qrcode[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ qrcode? ( media-gfx/zbar[v4l] )
+ qt6? (
+
dev-python/pyqt6[gui,multimedia,printsupport,qml,quick,widgets,${PYTHON_USEDEP}]
+ )
+ ncurses? ( $(python_gen_impl_dep 'ncurses') )
+"
+BDEPEND="
+ test? (
+ dev-python/pyaes[${PYTHON_USEDEP}]
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ )
+ verify-sig? (
+ sec-keys/openpgp-keys-electrum
+ )
+"
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/electrum.asc
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # remove bundled dependencies
+ rm -r electrum/_vendor packages || die
+ find -name '*.py' -exec \
+ sed -i -e 's:\(electrum\)\?[.]_vendor[.]::' {} + || die
+
+ # use backwards-compatible cryptodome API
+ sed -i -e 's:Cryptodome:Crypto:' electrum/crypto.py || die
+
+ # make qdarkstyle dep optional
+ sed -i -e '/qdarkstyle/d' contrib/requirements/requirements.txt || die
+
+ # remove upper bounds from deps
+ sed -i -e 's:,<[0-9.]*::' contrib/requirements/requirements.txt || die
+
+ local bestgui
+ if use qt6; then
+ bestgui=qt
+ elif use ncurses; then
+ bestgui=text
+ else
+ bestgui=stdio
+ fi
+ sed -i 's/^\([[:space:]]*\)\(config_options\['\''cwd'\''\] =
.*\)$/\1\2\n\1config_options.setdefault("gui", "'"${bestgui}"'")\n/'
${PN}/${PN} || die
+
+ xdg_environment_reset
+}
+
+src_install() {
+ dodoc RELEASE-NOTES
+ distutils-r1_src_install
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+
+ ver_replacing -ge 4.3.4 && return
+
+ ewarn "If you are new to BitCoin, please be aware that:"
+ ewarn "1. Cryptocurrencies are volatile. BTC has been subject to rapid"
+ ewarn " changes of value in the past."
+ ewarn "2. Cryptocurrency ownership is determined solely by the access
to"
+ ewarn " the private key. If the key is lost or stolen, BTC are
unrevocably"
+ ewarn " lost."
+ ewarn "3. Proof-of-work based cryptocurrencies have negative
environmental"
+ ewarn " impact. BTC mining is consuming huge amounts of electricity."
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}