dev-python/sphinx-gallery: fix nose depedency
authorSébastien Fabbro <bicatali@gentoo.org>
Tue, 3 Jan 2017 02:42:04 +0000 (02:42 +0000)
committerSébastien Fabbro <bicatali@gentoo.org>
Wed, 4 Jan 2017 06:02:04 +0000 (06:02 +0000)
And add basic testing.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-python/sphinx-gallery/sphinx-gallery-0.1.7-r1.ebuild [moved from dev-python/sphinx-gallery/sphinx-gallery-0.1.7.ebuild with 69% similarity]

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 a1f4cb520d935435fa7451364da4e74a8aeb6dd8..7f9ae300f5a984d5525ec1da1cec8db5324a7878 100644 (file)
@@ -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
+}