net-mail/automx2: use distutils_enable_tests

This automatically handles RESTRICT/IUSE/BDEPEND (including RDEPEND for tests).
Unfortunately, it doesn't pick up the tests by default, so we still have
to define the phase.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-03-09 12:04:35 +00:00
parent cf08faa04a
commit 2753bd1787

View File

@@ -24,6 +24,8 @@ RDEPEND="
dev-python/ldap3[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
python_prepare_all() {
sed -i -e "/('scripts'/d" setup.py || die
distutils-r1_python_prepare_all