diff options
Diffstat (limited to 'dev-python/nbformat')
-rw-r--r-- | dev-python/nbformat/Manifest | 3 | ||||
-rw-r--r-- | dev-python/nbformat/metadata.xml | 18 | ||||
-rw-r--r-- | dev-python/nbformat/nbformat-4.4.0.ebuild | 58 |
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest new file mode 100644 index 000000000000..7e51698a4f93 --- /dev/null +++ b/dev-python/nbformat/Manifest @@ -0,0 +1,3 @@ +DIST nbformat-4.4.0.tar.gz 113683 BLAKE2B f86d85d4f8bd7b2253a958b7489f8a21efa439cd75373740b4aba215aaf2b63c32ebbc88541c9a7c57bb80ef00a996ba55313c3b830063305b9a9b41b713aef4 SHA512 46cb78bca374ef49c4461f230cbb8eb4af611d7be395a448680964c759d47fa8558dd07de96c43921ca171c486707dc823e278b724d9dab51bd30c3dab47ff6e +EBUILD nbformat-4.4.0.ebuild 1288 BLAKE2B 45d2493a1658c073fcae78d04cf78947dfb8b376f869647263c44c66965d3891906582d7db4c77fc698fb0d7cd9b9b5bfb5f2917a573719b734f1119a539b825 SHA512 a71ccc0b09fbe55d2e39d15fc056d6ab45355fe8d619115617141c985455ead0d2db7e7cd10d875de95e8c17a1d29235e00302946989d4788c9a0b0ee7b01f52 +MISC metadata.xml 647 BLAKE2B 0d115b188530f78f963105d8e9e4246328526a00146c79590a288f822a3326521950b0be1fdb348cacea47729c6600a99a82e57b02e191147cf0a05821187d26 SHA512 74b3a7a494e4ae1cd6407c031978a96d18de1e142570f5a42071df743bc55a8756271a3903f2bf22fe5997440339571c41a1210e7982bb1ad46468f84690a05f diff --git a/dev-python/nbformat/metadata.xml b/dev-python/nbformat/metadata.xml new file mode 100644 index 000000000000..81964b34d3ad --- /dev/null +++ b/dev-python/nbformat/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription> + Jupyther nbformat contains the reference implementation of the + Jupyter Notebook format, and Python APIs for working with + notebooks. There is also a JSON schema for notebook format + versions >= 3. + </longdescription> + <upstream> + <remote-id type="pypi">nbformat</remote-id> + <remote-id type="github">jupyter/nbformat</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/nbformat/nbformat-4.4.0.ebuild b/dev-python/nbformat/nbformat-4.4.0.ebuild new file mode 100644 index 000000000000..fa1d57d19a11 --- /dev/null +++ b/dev-python/nbformat/nbformat-4.4.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 + +DESCRIPTION="Reference implementation of the Jupyter Notebook format" +HOMEPAGE="http://jupyter.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/jsonschema-2.4.0[${PYTHON_USEDEP}] + dev-python/ipython_genutils[${PYTHON_USEDEP}] + >=dev-python/traitlets-4.1[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/numpydoc[${PYTHON_USEDEP}] + ) + test? ( + dev-python/testpath[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + ) + " + +python_prepare_all() { + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + emake -C docs html + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}"/lib || die + py.test -v --cov nbformat nbformat || die +} |