commit:     f76cec010b8dbb9194c68afe263083e35f58b097
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jun  6 01:25:25 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun  6 01:55:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76cec01

dev-python/magic-wormhole-transit-relay: add 0.2.1_p20231025

Upgrade to new python 3.12 compatible snapshot. Thanks, versioneer.
Sigh. And more sigh. And yet more sigh.

Buggy: https://github.com/magic-wormhole/magic-wormhole-transit-relay/pull/36
Closes: https://bugs.gentoo.org/929468
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/magic-wormhole-transit-relay/Manifest   |  1 +
 ...c-wormhole-transit-relay-0.2.1_p20231025.ebuild | 37 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-python/magic-wormhole-transit-relay/Manifest 
b/dev-python/magic-wormhole-transit-relay/Manifest
index 6ddedcfde874..18a8da210227 100644
--- a/dev-python/magic-wormhole-transit-relay/Manifest
+++ b/dev-python/magic-wormhole-transit-relay/Manifest
@@ -1,2 +1,3 @@
 DIST magic-wormhole-transit-relay-0.2.1.gh.tar.gz 45936 BLAKE2B 
ffb05c716a35e688801150c3fd6de28cf557ed346091400f9eeb9335b6815425624e70d61f54be8f0a1e8bb15e874528f7cfcef1e8f0a2f8d3cd4285adb1db3a
 SHA512 
dcc309de800d9023ff106ea7b67da4814006ee50e517570c046f2dff20573306b3d5f7c4e227186b2b6f8ff7cb71e02e41499766badf299d859a0e5628066162
 DIST magic-wormhole-transit-relay-0.2.1_p20230525.gh.tar.gz 55549 BLAKE2B 
36184ce5034f8a5b684fb82a9e6debd1f945a119c9daa155e5bec0041dd986668573b7843efde8bbce2dbf2630774b7a195e28443c070760e234e0214c51dcc3
 SHA512 
c8270b8daebaf2d6403f0cbc6ff8a5c37fec6fd28ce0d441c834f5bcfcb1e0dedfb953acdf9711b6077c0e5fce3fba37447f2c29ed424ba64d8c2a9519b5eed8
+DIST magic-wormhole-transit-relay-0.2.1_p20231025.gh.tar.gz 60237 BLAKE2B 
79b711aaff5d0c19b8a127d7dbe6146cfe6b8278e9c952f400862c4a7a9808f9ff03996d6d96d3ac4a61a1def263be2c3d9f4d7115639000e53881317eb07bc9
 SHA512 
98ce7af3be438eaf60465a055f4baac2f1bfda413ee0b78a804ba7e510805e68bc4fea309585961622e91a4208edd376f631052a6666d69c28b154941a3f6c6e

diff --git 
a/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.2.1_p20231025.ebuild
 
b/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.2.1_p20231025.ebuild
new file mode 100644
index 000000000000..5e1e17fc1c50
--- /dev/null
+++ 
b/dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.2.1_p20231025.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+
+# Version 0.2.1 with additional upstream fixes for python 3.12 support and
+# miscelleanous bufixes
+COMMIT_SHA1="3b298558e419b0f575f4026be02dd369a4e5f245"
+
+inherit distutils-r1
+
+DESCRIPTION="Transit relay server for magic-wormhole"
+HOMEPAGE="https://magic-wormhole.readthedocs.io/en/latest/ 
https://pypi.org/project/magic-wormhole-transit-relay/";
+SRC_URI="https://github.com/magic-wormhole/${PN}/archive/${COMMIT_SHA1}.tar.gz 
-> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+S="${WORKDIR}/magic-wormhole-transit-relay-${COMMIT_SHA1}"
+
+RDEPEND="
+       dev-python/autobahn[${PYTHON_USEDEP}]
+       dev-python/twisted[ssl,${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+python_test() {
+       # deselect test_buff_fill test because it exhibits intermittent hangs,
+       # bug #907200
+       local EPYTEST_DESELECT=(
+               
src/wormhole_transit_relay/test/test_backpressure.py::TransitWebSockets::test_buffer_fill
+       )
+       epytest
+}

Reply via email to