diff options
Diffstat (limited to 'dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.2.1_p20231025.ebuild')
-rw-r--r-- | dev-python/magic-wormhole-transit-relay/magic-wormhole-transit-relay-0.2.1_p20231025.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
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 +} |