commit:     255d69c1e94c66aa633c17717520787328b063ce
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 24 12:43:09 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 24 12:58:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=255d69c1

dev-python/magic-wormhole-transit-relay: Bump to 0.3.1

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

 dev-python/magic-wormhole-transit-relay/Manifest   |  1 +
 .../magic-wormhole-transit-relay-0.3.1.ebuild      | 68 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-python/magic-wormhole-transit-relay/Manifest 
b/dev-python/magic-wormhole-transit-relay/Manifest
index 83f3c197203d..5230c7e5133b 100644
--- a/dev-python/magic-wormhole-transit-relay/Manifest
+++ b/dev-python/magic-wormhole-transit-relay/Manifest
@@ -1 +1,2 @@
 DIST magic-wormhole-transit-relay-0.2.1.gh.tar.gz 45936 BLAKE2B 
ffb05c716a35e688801150c3fd6de28cf557ed346091400f9eeb9335b6815425624e70d61f54be8f0a1e8bb15e874528f7cfcef1e8f0a2f8d3cd4285adb1db3a
 SHA512 
dcc309de800d9023ff106ea7b67da4814006ee50e517570c046f2dff20573306b3d5f7c4e227186b2b6f8ff7cb71e02e41499766badf299d859a0e5628066162
+DIST magic-wormhole-transit-relay-0.3.1.gh.tar.gz 63304 BLAKE2B 
ab6706e7265eab69376e9490e328e0a81a414c3667eaaac3a6e2c62f983e5beaf3e0f25da12b815703ae0ade69984f015153709ccae95871a6bf37f99b23d63c
 SHA512 
3611ee140f421234e2e5805baf4d26a64879f067c8a75db1a44041c0f9ebe1d3cca7b202752f5bd423e6784ab5a6961fe27423564633dba9f09e92b14d370275

diff --git 
a/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.3.1.ebuild
 
b/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.3.1.ebuild
new file mode 100644
index 000000000000..733cc1e4f00f
--- /dev/null
+++ 
b/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.3.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Transit relay server for magic-wormhole"
+HOMEPAGE="
+       https://magic-wormhole.readthedocs.io/en/latest/
+       https://github.com/magic-wormhole/magic-wormhole-transit-relay/
+       https://pypi.org/project/magic-wormhole-transit-relay/
+"
+SRC_URI="
+       
https://github.com/magic-wormhole/magic-wormhole-transit-relay/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+       >=dev-python/autobahn-21.3.1[${PYTHON_USEDEP}]
+       >=dev-python/twisted-21.2.0[ssl,${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/versioneer[${PYTHON_USEDEP}]
+       test? (
+               dev-python/mock[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       distutils-r1_src_prepare
+       rm versioneer.py || die
+}
+
+python_test() {
+       local -x PATH=${T}/bin:${PATH}
+       mkdir -p "${T}"/bin || die
+       # the script is apparently run with PATH wiped, sigh
+       cat > "${T}"/bin/twistd <<-EOF || die
+               #!$(type -P python)
+               import sys
+               from twisted.scripts.twistd import run
+               sys.exit(run())
+       EOF
+       chmod +x "${T}"/bin/twistd || die
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+
+       find "${BUILD_DIR}/install" -name dropin.cache -delete || die
+}
+
+pkg_postinst() {
+       python_foreach_impl twisted-regen-cache
+}
+
+pkg_postrm() {
+       python_foreach_impl twisted-regen-cache
+}

Reply via email to