commit:     0ef27c60ebc1d8b3103e943efe35e4173584682b
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  3 02:42:04 2017 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Jan  4 06:02:04 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ef27c60

dev-python/sphinx-gallery: fix nose depedency
And add basic testing.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 ...inx-gallery-0.1.7.ebuild => sphinx-gallery-0.1.7-r1.ebuild} | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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 a1f4cb5..7f9ae30 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
+}

Reply via email to