diff options
Diffstat (limited to 'dev-python/funcy')
| -rw-r--r-- | dev-python/funcy/funcy-1.14.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-python/funcy/funcy-1.14.ebuild b/dev-python/funcy/funcy-1.14.ebuild index ef4fd7c71310..741ebafc6b72 100644 --- a/dev-python/funcy/funcy-1.14.ebuild +++ b/dev-python/funcy/funcy-1.14.ebuild @@ -13,7 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND="" RDEPEND="${DEPEND}" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/whatever[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + distutils_install_for_testing --via-root + pytest || die "Tests fail with ${EPYTHON}" +} |
