# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 #Appears to support only py2, pypy PYTHON_COMPAT=( python{2_6,2_7} pypy2_0 ) inherit distutils-r1 DESCRIPTION="Sphinx extension to support docstrings in Numpy format" HOMEPAGE="http://github.com/numpy/numpy/tree/master/doc/sphinxext" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" RDEPEND=">=dev-python/sphinx-1.0.1[${PYTHON_USEDEP}]" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/nose[${PYTHON_USEDEP}] )" python_test() { nosetests -w ./tests || die "Tests failed under ${EPYTHON}" }