commit: 2ffe2702911ea378de26d58cbc07699f7ac98b92
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 28 06:23:24 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 28 06:38:18 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ffe2702
net-misc/electrum: Bump to 4.7.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
net-misc/electrum/Manifest | 2 +
net-misc/electrum/electrum-4.7.1.ebuild | 126 ++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
index 5c24327ede7e..b772ddbd0369 100644
--- a/net-misc/electrum/Manifest
+++ b/net-misc/electrum/Manifest
@@ -2,3 +2,5 @@ DIST Electrum-4.6.2.tar.gz 15020844 BLAKE2B
1a83f329167510670f4c01e097a6834fb417
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
+DIST Electrum-4.7.1.tar.gz 11877987 BLAKE2B
300c3c50d888146dd1e5fa31f816bc87208fac599d78adc16a7b6262b9620d0b20a3c2233a3f79e5aaaf83639af3af068477ac7fa8d842fd0a030d7bd64eab4b
SHA512
7e4f2868fe7a1aa177f6bcf476f815f1cc5931142809a8e161ebdf0c2131263c3dd86792058c6a395721a4b3b7ac855dd156e4d95ab6e1adcbd82aa91521a876
+DIST Electrum-4.7.1.tar.gz.asc 2499 BLAKE2B
2e3ef9759eec28a4086756afdc6753db03f0b21f2f1ca15c2fbbe09572ae07a85d129d39d4924a98f9d70f4cbd8609aebc8d3cc679a03ad1bdcccb445835f3b7
SHA512
b7c600e3a994596cd46cfb1dbb74d09e6bfc7bbb7960f2b9cf0c065bc607db798271b6925eced43d143666c61fc3e6936db98751aef3de8ab0ca953929b77d8d
diff --git a/net-misc/electrum/electrum-4.7.1.ebuild
b/net-misc/electrum/electrum-4.7.1.ebuild
new file mode 100644
index 000000000000..688910235255
--- /dev/null
+++ b/net-misc/electrum/electrum-4.7.1.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
+}