diff options
Diffstat (limited to 'dev-python/pweave/pweave-0.30.3-r1.ebuild')
-rw-r--r-- | dev-python/pweave/pweave-0.30.3-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pweave/pweave-0.30.3-r1.ebuild b/dev-python/pweave/pweave-0.30.3-r1.ebuild new file mode 100644 index 000000000000..f85db19e41dd --- /dev/null +++ b/dev-python/pweave/pweave-0.30.3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_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 +} |