From: Sébastien Fabbro Date: Tue, 3 Jan 2017 02:42:04 +0000 (+0000) Subject: dev-python/sphinx-gallery: fix nose depedency X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0ef27c60ebc1d8b3103e943efe35e4173584682b;p=gentoo.git dev-python/sphinx-gallery: fix nose depedency And add basic testing. Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- diff --git a/dev-python/sphinx-gallery/sphinx-gallery-0.1.7.ebuild b/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild similarity index 69% rename from dev-python/sphinx-gallery/sphinx-gallery-0.1.7.ebuild rename to dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild index a1f4cb520d93..7f9ae300f5a9 100644 --- a/dev-python/sphinx-gallery/sphinx-gallery-0.1.7.ebuild +++ b/dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -22,6 +22,14 @@ RDEPEND=" dev-python/pillow[${PYTHON_USEDEP}] dev-python/sphinx[${PYTHON_USEDEP}] " +# yes nose is somehow required besides testing DEPEND=" + dev-python/nose[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] " + +python_test() { + echo 'backend: agg' > matplotlibrc + VARTEXFONTS="${T}"/fonts MPLCONFIGDIR="${BUILD_DIR}" \ + nosetests -v || die +}