repo/gentoo:master commit in: net-misc/electrum/

Michał Górny <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786944275.a0a1eb258ede6fc1baee110d73ae8f2f2d9839ab.mgorny@gentoo>
commit:     a0a1eb258ede6fc1baee110d73ae8f2f2d9839ab
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 04:39:45 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 05:24:35 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0a1eb25

net-misc/electrum: Bump to 4.8.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 net-misc/electrum/Manifest              |   2 +
 net-misc/electrum/electrum-4.8.1.ebuild | 126 ++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest
index b0547173788a..50e608421d30 100644
--- a/net-misc/electrum/Manifest
+++ b/net-misc/electrum/Manifest
@@ -1,2 +1,4 @@
 DIST Electrum-4.8.0.tar.gz 12063195 BLAKE2B 7ab78d70ae85084247821b91df1b4f848198ee8a5bc8274a39ae7b4be7591df651b6a4c7967676b5a99990a0c33cda41451fe2a9b8c27621e45fab7908cd6468 SHA512 4cbb771fce8c1df0e49370306e43d985b3e68f1a538de41f5612ce55689b52a5dcc2e80a859e290b7c71a6a4076aa0091e944c2c79af85c10a9bfbe2e68ee6ab
 DIST Electrum-4.8.0.tar.gz.asc 1666 BLAKE2B 1d3a101b8cf28628023326e78ecf5f0996d05cd19010c2dfcf039ee79a3ab9ae7b5416faa0cfeba8f390ca972c41d8f07cf9e06d903a100cd2dae2e93dd8bda4 SHA512 0db350047bb3a4cd583071044b7b5445db821f453ce0fede6eb98b1df7e9dbc50c4dc2f797106f0396ed49ef2e84bbb66ec51995e4d39df494edd0ae155cc2fc
+DIST Electrum-4.8.1.tar.gz 11966268 BLAKE2B 3f32e29e3ec0d20c433aa260914a099ed22b6bce798c9ad18959f3f20398ce3a0f08eedcdc55cc00a1912065d226d581419b08a4dddcba681c4922843b29ce6d SHA512 78fdc2ed9fb06a097fda42a40304241ceb46c090ea8cb8914bb5197cdd1b8530a228ae5e0c54956556e2a26d3250faf11289e8425557d455a5d33aea9da5bf36
+DIST Electrum-4.8.1.tar.gz.asc 3560 BLAKE2B 4130955b2f4ca9a3dab18cf100f35a1b9f2d666f42821f5f740efb971fd0326980681e8b5873e57f928591fe94b4164a34a0b209916815cc7e0334b2136c625f SHA512 cab4beb8cb48d6155565426ab7e2de0063c44609ee9080c0296e15836cf95eb1180e7ea2e285bc1004cf001b31fae038d9f7ec4c6365cd1bf5649df4ebf58b4e

diff --git a/net-misc/electrum/electrum-4.8.1.ebuild b/net-misc/electrum/electrum-4.8.1.ebuild
new file mode 100644
index 000000000000..e6854c22dc70
--- /dev/null
+++ b/net-misc/electrum/electrum-4.8.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_{12..14} )
+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/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_RERUNS=5
+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
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.