diff options
Diffstat (limited to 'dev-python/qtconsole')
-rw-r--r-- | dev-python/qtconsole/Manifest | 2 | ||||
-rw-r--r-- | dev-python/qtconsole/qtconsole-4.3.1.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/qtconsole/Manifest b/dev-python/qtconsole/Manifest index f0318fc2143a..c099929b1a1f 100644 --- a/dev-python/qtconsole/Manifest +++ b/dev-python/qtconsole/Manifest @@ -1,3 +1,5 @@ DIST qtconsole-4.3.0.tar.gz 416877 BLAKE2B 7619a3c8c8ab2e8bc2b30606624cdf77e9725df8eac13ed25700226d47ab4167d58bc3df5b5330590756583396cb08be210a8ade4236f9e46e564bef5f0e885d SHA512 50e8d04152b90e85989ee6f1f182ae0f788d5f231311fcd61170b7a7c20a9a32d35918810ccb85e38be6b2092791c7fa9ac8726524100bca12d9ae6a949acc54 +DIST qtconsole-4.3.1.tar.gz 416931 BLAKE2B ec47c2ae8527d7aee55d6cb8d2ebea39ab1bfd3a268c46306613b67f72c27904db1de52682a47d075d804dad9cd7c124296163b39532936fb1a497ae606b7ffc SHA512 f0f84d95143b4513c3d12af4712c6a5724143bf8c44e7a3fbc06d7a94e665b8d12072dd13eafb09476a3aa829155f4c75eb517ffb2bd6e8bd3c00af3c764e48f EBUILD qtconsole-4.3.0.ebuild 1554 BLAKE2B 4444084bc38e50af86c2fe963bbf909d8041e9dde52041f9546cd3bc04ba0e62128e4dc9b8a45c92e650d490e491fb0309387495a4ece2720294c53b50957f07 SHA512 c9678d938004ad601fbf478c421062c50628dace94d76bbce1f83d99fab819d7e6caa935766079e6b95d81ea1d6555d8a5a420ef61af3358267c7bd2b5665333 +EBUILD qtconsole-4.3.1.ebuild 1709 BLAKE2B f7e3f5bdad404a702b5f4fbed3bf829b2cd24bd45639c2feca5c50402cc993722efd28b60fb2744e5a54553c8f31a8e5a099961be953e0b715a99009b7af4da6 SHA512 fe1a703004b2628328051cfb64f1ec9b9c26d1927da514402534607c09ae8733357270ccaa51e0ff30431f3fb43681cc2f4dee761d5dfdac8e058cc09797b4a7 MISC metadata.xml 557 BLAKE2B 09988fd98b75ef9c7847cc1035f6d8726375ec61638dc9ff01c0ac9556ce16afe987a66e0ecd674a376fb9af39ec2c721e04abd829f1153652d8eeee82c089ff SHA512 5f176e9d82b9031b0d15c32986074431f03e33843a50f68e94d7aa0ba10c31370e2c4ee0651481d7a5b42f873e0aec4771c9fc7ca996386286255166be20d8cd 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..ef832b246086 --- /dev/null +++ b/dev-python/qtconsole/qtconsole-4.3.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 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 +} |