1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
7 DISTUTILS_USE_SETUPTOOLS=rdepend
11 DESCRIPTION="A robust email syntax and deliverability validation library"
12 HOMEPAGE="https://github.com/JoshData/python-email-validator"
13 SRC_URI="https://github.com/JoshData/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 S="${WORKDIR}/${PN}-${PV}"
17 KEYWORDS="~amd64 ~x86"
21 >=dev-python/idna-2.0.0[${PYTHON_USEDEP}]
22 >=dev-python/dnspython-1.15.0[${PYTHON_USEDEP}]
25 distutils_enable_tests pytest
27 python_prepare_all() {
28 # deliverability tests fail within network-sandbox
29 sed -e 's:test_deliverability_:_&:' \
30 -i tests/test_main.py || die
32 distutils-r1_python_prepare_all