summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sabyenc')
-rw-r--r--dev-python/sabyenc/sabyenc-3.0.2.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev-python/sabyenc/sabyenc-3.0.2.ebuild b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
index 4122aa0122f9..06578573af94 100644
--- a/dev-python/sabyenc/sabyenc-3.0.2.ebuild
+++ b/dev-python/sabyenc/sabyenc-3.0.2.ebuild
@@ -13,12 +13,15 @@ SRC_URI="https://github.com/sabnzbd/${PN}/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
+
+DEPEND="
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
# Remove forced CFLAG on setup.py
PATCHES=( "${FILESDIR}"/0001-remove-hardcoded-cflags.patch )
DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
python_test() {
- "${PYTHON}" test/test.py || die "Test failed."
+ pytest -v || die "Test failed."
}