1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_6 )
10 DESCRIPTION="Python module to describe statistical models and design matrices"
11 HOMEPAGE="http://patsy.readthedocs.org/en/latest/index.html"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
16 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
18 RESTRICT="!test? ( test )"
21 dev-python/numpy[${PYTHON_USEDEP}]
22 dev-python/six[${PYTHON_USEDEP}]
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 sci-libs/scipy[${PYTHON_USEDEP}]
28 dev-python/ipython[${PYTHON_USEDEP}]
29 dev-python/matplotlib[${PYTHON_USEDEP}]
30 dev-python/sphinx[${PYTHON_USEDEP}]
31 dev-python/pandas[${PYTHON_USEDEP}]
33 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
35 python_compile_all() {
36 use doc && emake -C doc html
40 cd "${BUILD_DIR}" || die
41 nosetests -v || die "Testing failed with ${EPYTHON}"
44 python_install_all() {
45 use doc && HTML_DOCS=( doc/_build/html/. )
46 distutils-r1_python_install_all