diff options
-rw-r--r-- | dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild b/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild index 7f9ae300f5a..dbc19a441f8 100644 --- a/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild +++ b/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild @@ -15,7 +15,8 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" dev-python/matplotlib[${PYTHON_USEDEP}] @@ -24,10 +25,16 @@ RDEPEND=" " # yes nose is somehow required besides testing DEPEND=" - dev-python/nose[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] + test? ( >=dev-python/nose-1.0[${PYTHON_USEDEP}] ) " +python_prepare_all() { + # Remove setup_requires=['nose'] + sed -i -e /setup_requires/d setup.py || die + distutils-r1_python_prepare_all +} + python_test() { echo 'backend: agg' > matplotlibrc VARTEXFONTS="${T}"/fonts MPLCONFIGDIR="${BUILD_DIR}" \ |