# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 virtualx TWISTED_PN="Twisted" TWISTED_P="${TWISTED_PN}-${PV}" TWISTED_RELEASE=$(ver_cut 1-2) DESCRIPTION="An asynchronous networking framework written in Python" HOMEPAGE="https://www.twistedmatrix.com/trac/" SRC_URI="https://twistedmatrix.com/Releases/${TWISTED_PN}" SRC_URI="${SRC_URI}/${TWISTED_RELEASE}/${TWISTED_P}.tar.bz2 https://dev.gentoo.org/~mgorny/dist/twisted-regen-cache.gz" KEYWORDS="~alpha amd64 arm arm64 ~mips ~ppc64 ~s390 sparc ~x86 ~amd64-linux ~x86-linux" LICENSE="MIT" SLOT="0" IUSE="conch crypt http2 serial +soap test" RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] >=dev-python/automat-0.3.0[${PYTHON_USEDEP}] >=dev-python/constantly-15.1.0[${PYTHON_USEDEP}] >=dev-python/hyperlink-17.1.1[${PYTHON_USEDEP}] >=dev-python/incremental-16.10.1[${PYTHON_USEDEP}] >=dev-python/pyhamcrest-1.9.0[${PYTHON_USEDEP}] >=dev-python/zope-interface-4.4.2[${PYTHON_USEDEP}] conch? ( dev-python/pyasn1[${PYTHON_USEDEP}] >=dev-python/cryptography-1.5.0[${PYTHON_USEDEP}] >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] ) crypt? ( >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] dev-python/service_identity[${PYTHON_USEDEP}] >=dev-python/idna-0.6[${PYTHON_USEDEP}] ) serial? ( >=dev-python/pyserial-3.0[${PYTHON_USEDEP}] ) soap? ( $(python_gen_cond_dep 'dev-python/soappy[${PYTHON_USEDEP}]' python2_7) ) http2? ( >=dev-python/hyper-h2-3.0.0[${PYTHON_USEDEP}] =dev-python/priority-1.1.0[${PYTHON_USEDEP}]