dev-python/dnspython: Add missing py2-dep on typing
authorMichał Górny <mgorny@gentoo.org>
Mon, 27 Apr 2020 18:59:55 +0000 (20:59 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 27 Apr 2020 19:21:12 +0000 (21:21 +0200)
Closes: https://bugs.gentoo.org/719702
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/dnspython/dnspython-1.16.0-r1.ebuild

index 10d63a177c182a3e34556eca6443962cebc95d88..8de675f2314ccee3507626ffa150eec1f378f55b 100644 (file)
@@ -14,16 +14,14 @@ SRC_URI="https://github.com/rthalley/dnspython/archive/v${PV}.tar.gz -> ${P}.tar
 LICENSE="ISC"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
-IUSE="examples test"
+IUSE="examples"
 
 RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}]
        >=dev-python/ecdsa-0.13[${PYTHON_USEDEP}]
        >=dev-python/idna-2.1[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep 'dev-python/typing[${PYTHON_USEDEP}]' -2)
        !dev-python/dnspython:py2
        !dev-python/dnspython:py3"
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-
-RESTRICT+=" !test? ( test )"
 
 python_test() {
        pushd tests >/dev/null || die