Upstream uses pytest in tests, so we need to depend on it. Using pytest
also avoids failures due to missing optional runtime deps that are not
used in tests at all.
Closes: https://bugs.gentoo.org/717884
Signed-off-by: Michał Górny <mgorny@gentoo.org>
HOMEPAGE="https://poez.io/"
LICENSE="ZLIB"
SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://git.poez.io/${PN}.git"
dev-python/pyasn1[${PYTHON_USEDEP}]
dev-python/slixmpp[${PYTHON_USEDEP}]
"
-DEPEND="
- test? (
- ${RDEPEND}
- dev-python/potr
- dev-python/pyinotify
- )"
+
+distutils_enable_tests pytest
DOC_CONTENTS="
Install these optional runtime dependencies for additional features.
pkg_postinst() {
readme.gentoo_print_elog
}
-
-python_test() {
- esetup.py test
-}
HOMEPAGE="https://poez.io/"
LICENSE="ZLIB"
SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://lab.louiz.org/${PN}/${PN}.git"
dev-python/pyasn1[${PYTHON_USEDEP}]
dev-python/slixmpp[${PYTHON_USEDEP}]
"
-DEPEND="
- test? (
- ${RDEPEND}
- dev-python/potr
- dev-python/pyinotify
- )"
+
+distutils_enable_tests pytest
DOC_CONTENTS="
Install these optional runtime dependencies for additional features.
pkg_postinst() {
readme.gentoo_print_elog
}
-
-python_test() {
- esetup.py test
-}