diff options
Diffstat (limited to 'dev-python/nbformat')
-rw-r--r-- | dev-python/nbformat/Manifest | 1 | ||||
-rw-r--r-- | dev-python/nbformat/nbformat-4.4.0-r1.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest index 9cabf187d2af..d9adcba13044 100644 --- a/dev-python/nbformat/Manifest +++ b/dev-python/nbformat/Manifest @@ -1,3 +1,4 @@ DIST nbformat-4.4.0.tar.gz 113683 BLAKE2B f86d85d4f8bd7b2253a958b7489f8a21efa439cd75373740b4aba215aaf2b63c32ebbc88541c9a7c57bb80ef00a996ba55313c3b830063305b9a9b41b713aef4 SHA512 46cb78bca374ef49c4461f230cbb8eb4af611d7be395a448680964c759d47fa8558dd07de96c43921ca171c486707dc823e278b724d9dab51bd30c3dab47ff6e +EBUILD nbformat-4.4.0-r1.ebuild 1221 BLAKE2B 310e6ea2a8106c70fab0c650619bbd3f07de41864022f0c5603c2bc350a1e7428d051e95000f99b64d7e19cb9c230c49ada425f8b4b73d74ef8fd1729c9fd1e4 SHA512 43f5e077e3aa6d44cff16653bb8bbc52faf0ae2faa73fa9f9ec8bff4409486813c3f21a778fce1fcb598a7e8e4c17e861a94cf1a562f9e7a9036c4e097b21223 EBUILD nbformat-4.4.0.ebuild 1286 BLAKE2B 33493ab9a038f35942e538708136c9074dc1a140c8279d1dc2e2d5aefe9c15a977e6488ae3210aa10b57568a65e45505ffb4b437c99cd2e382cb58217011ea43 SHA512 a9676ec5d59b33a81a41c819ce15dd6eba9f6d0b0362eb9b62bbea1cf430d529c4f8d6b743b0d4159b56c9ef178f055392dcb71ffcc941b1b4bc212fe3251152 MISC metadata.xml 647 BLAKE2B 0d115b188530f78f963105d8e9e4246328526a00146c79590a288f822a3326521950b0be1fdb348cacea47729c6600a99a82e57b02e191147cf0a05821187d26 SHA512 74b3a7a494e4ae1cd6407c031978a96d18de1e142570f5a42071df743bc55a8756271a3903f2bf22fe5997440339571c41a1210e7982bb1ad46468f84690a05f diff --git a/dev-python/nbformat/nbformat-4.4.0-r1.ebuild b/dev-python/nbformat/nbformat-4.4.0-r1.ebuild new file mode 100644 index 000000000000..854ea496fff1 --- /dev/null +++ b/dev-python/nbformat/nbformat-4.4.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 + +DESCRIPTION="Reference implementation of the Jupyter Notebook format" +HOMEPAGE="https://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}] + ) + " + +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 + pytest -vv nbformat || die +} |