You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/pweave/pweave-0.30.3.ebuild

58 lines
1.3 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
MY_PN="Pweave"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Scientific report generator and literate programming tool"
HOMEPAGE="http://mpastell.com/pweave
https://github.com/mpastell/Pweave"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
IUSE="examples"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/${P}-docs.patch"
"${FILESDIR}/${P}-rm-online-tests.patch" )
RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]
dev-python/ipykernel[${PYTHON_USEDEP}]
dev-python/jupyter_client[${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
dev-python/nbconvert[${PYTHON_USEDEP}]
dev-python/nbformat[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]"
DEPEND="test? (
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
dev-python/notebook[${PYTHON_USEDEP}]
sci-libs/scipy[${PYTHON_USEDEP}] )"
S="${WORKDIR}/${MY_P}"
distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme
distutils_enable_tests pytest
python_install_all() {
if use examples; then
insinto /usr/share/${PN}
doins -r doc/examples
fi
distutils-r1_python_install_all
}