# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 DESCRIPTION="Securely and simply transfer data between computers" HOMEPAGE="https://github.com/warner/magic-wormhole" EGIT_COMMIT="${PV}" SRC_URI="https://github.com/warner/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.gh.tar.gz" LICENSE="MIT" SLOT="python2" KEYWORDS="~amd64 ~x86" RESTRICT="test" RDEPEND=" >=dev-python/attrs-16.3.0:python2[${PYTHON_USEDEP}] >=dev-python/autobahn-0.14.1:python2[${PYTHON_USEDEP}] >=dev-python/spake2-0.8:python2[${PYTHON_USEDEP}] >=dev-python/tqdm-4.13.0:python2[${PYTHON_USEDEP}] >=dev-python/twisted-17.5.0:python2[${PYTHON_USEDEP}] >=dev-python/txtorcon-0.18.0.2:python2[${PYTHON_USEDEP}] dev-python/automat:python2[${PYTHON_USEDEP}] dev-python/click:python2[${PYTHON_USEDEP}] dev-python/hkdf:python2[${PYTHON_USEDEP}] dev-python/humanize:python2[${PYTHON_USEDEP}] dev-python/idna:python2[${PYTHON_USEDEP}] dev-python/pynacl:python2[${PYTHON_USEDEP}] dev-python/pyopenssl:python2[${PYTHON_USEDEP}] dev-python/service-identity:python2[${PYTHON_USEDEP}] dev-python/six:python2[${PYTHON_USEDEP}] virtual/python-futures[${PYTHON_USEDEP}] != 18.0.2||' setup.py || die "Sed failed!" # Dirty fix because twisted-tls is not recognised as a real dependency, but # we made sure pyOpenSSL, service_identity and idna are built anyway. sed -i -e '/twisted\[tls\]/d' setup.py || die "Sed failed!" sed -i \ -e 's/"wormhole = wormhole.cli.cli:wormhole"/"wormhole_py2 = wormhole.cli.cli:wormhole"/' \ setup.py || die default }