diff options
Diffstat (limited to 'dev-python/qtconsole')
-rw-r--r-- | dev-python/qtconsole/Manifest | 3 | ||||
-rw-r--r-- | dev-python/qtconsole/metadata.xml | 16 | ||||
-rw-r--r-- | dev-python/qtconsole/qtconsole-4.3.1.ebuild | 66 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/qtconsole/Manifest b/dev-python/qtconsole/Manifest new file mode 100644 index 000000000000..e005f44cc2cc --- /dev/null +++ b/dev-python/qtconsole/Manifest @@ -0,0 +1,3 @@ +DIST qtconsole-4.3.1.tar.gz 416931 BLAKE2B ec47c2ae8527d7aee55d6cb8d2ebea39ab1bfd3a268c46306613b67f72c27904db1de52682a47d075d804dad9cd7c124296163b39532936fb1a497ae606b7ffc SHA512 f0f84d95143b4513c3d12af4712c6a5724143bf8c44e7a3fbc06d7a94e665b8d12072dd13eafb09476a3aa829155f4c75eb517ffb2bd6e8bd3c00af3c764e48f +EBUILD qtconsole-4.3.1.ebuild 1707 BLAKE2B 4ee6aebff46ca0c98ad9c8c5f9721c0711a88523d279ee1f0209dec4d151b4a6a55d8934e2043f651fb0100ffaeea582fe7e6769833896cdc09ab277f247e49d SHA512 13a39c14b6d43b3baa5d565750583a4bd03e48376e3ea795ecf15b88ed3d1fd425d09db16e291d017af7adc7a9415bb8ac6ab044d742eacddae755d846449fc9 +MISC metadata.xml 557 BLAKE2B 09988fd98b75ef9c7847cc1035f6d8726375ec61638dc9ff01c0ac9556ce16afe987a66e0ecd674a376fb9af39ec2c721e04abd829f1153652d8eeee82c089ff SHA512 5f176e9d82b9031b0d15c32986074431f03e33843a50f68e94d7aa0ba10c31370e2c4ee0651481d7a5b42f873e0aec4771c9fc7ca996386286255166be20d8cd diff --git a/dev-python/qtconsole/metadata.xml b/dev-python/qtconsole/metadata.xml new file mode 100644 index 000000000000..1c4f5a322518 --- /dev/null +++ b/dev-python/qtconsole/metadata.xml @@ -0,0 +1,16 @@ +<?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> + A rich Qt-based console for working with Jupyter kernels, + supporting rich media output, session export, and more. + </longdescription> + <upstream> + <remote-id type="pypi">qtconsole</remote-id> + <remote-id type="github">jupyter/qtconsole</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/qtconsole/qtconsole-4.3.1.ebuild b/dev-python/qtconsole/qtconsole-4.3.1.ebuild new file mode 100644 index 000000000000..28b1ec5879c9 --- /dev/null +++ b/dev-python/qtconsole/qtconsole-4.3.1.ebuild @@ -0,0 +1,66 @@ +# 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="threads(+)" + +inherit distutils-r1 virtualx + +DESCRIPTION="Qt-based console for Jupyter with support for rich media output" +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/ipykernel[${PYTHON_USEDEP}] + dev-python/ipython_genutils[${PYTHON_USEDEP}] + dev-python/jupyter_core[${PYTHON_USEDEP}] + >=dev-python/jupyter_client-4.1.1[${PYTHON_USEDEP}] + dev-python/traitlets[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( + >=dev-python/ipython-4.0.0-r2[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}] + ) + test? ( + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' 'python2*') + >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP},svg,testlib] + ) + dev-python/PyQt5[${PYTHON_USEDEP},svg] + dev-python/pygments[${PYTHON_USEDEP}] + >=dev-python/pyzmq-13[${PYTHON_USEDEP}] + " +PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" + +python_prepare_all() { + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/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() { + # jupyter qtconsole --generate-config ... jupyter-qtconsole: cannot connect to X server + # ERROR + sed \ + -e 's:test_generate_config:_&:g' \ + -i qtconsole/tests/test_app.py || die + virtx nosetests --verbosity=2 qtconsole +} |