mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/magic-wormhole-transit-relay: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST magic-wormhole-transit-relay-0.4.0.gh.tar.gz 62333 BLAKE2B 16415af2b9927cf2717c1c38be4b498d666db271c4e7b907bcf0fae9d5d100ee341358d2f04e72ba1a7f930dbc4fd9e797b20d6915d21955ef6963520d9b406a SHA512 ee0f40460277abc1ad550e070d8b70329da8c1311852f7a2eaaef036cfee7fcf018be7e6bad6f416392a602326ac436c33039d577af8cee2cfb09736749e956d
|
||||
DIST magic-wormhole-transit-relay-0.5.0.gh.tar.gz 65189 BLAKE2B 7c2e98de1042410558cd2a7e219f821c71fa7e90b84b7cae1498dc155baf36aeef4f0a907f9c2419175bbae0d28b8826c4d8f1a8ee41088b8dad36e21d884963 SHA512 13b2358ab7c076bb822cd9e2394ecdd6d30769a043ed2e2cf04b68f451cd28dbedbfbe329f945581e9c0a83b2bde7b1a2529d8d38ef29a66088190aedbcd7d1f
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user