Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbconvert/
Date: Tue, 04 Jan 2022 20:44:21
Message-Id: 1641329014.3d51184eab3336f3f47c541ebdc75673ea22a9f8.arthurzam@gentoo
1 commit: 3d51184eab3336f3f47c541ebdc75673ea22a9f8
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 4 20:43:34 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 4 20:43:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d51184e
7
8 dev-python/nbconvert: add 6.4.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/nbconvert/Manifest | 1 +
13 dev-python/nbconvert/nbconvert-6.4.0.ebuild | 73 +++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest
17 index 089ca9e3bdc8..d0665ac6c8c4 100644
18 --- a/dev-python/nbconvert/Manifest
19 +++ b/dev-python/nbconvert/Manifest
20 @@ -1 +1,2 @@
21 DIST nbconvert-6.3.0.tar.gz 900850 BLAKE2B 8ef7d3bfcb914bf4be064ef440faab283fcc71e53579a681deb343d307a8b39cca2d0b83828b9df7c45ee7e9e06164ba6daa234b678197bc8a3202cd7e560c06 SHA512 efbe18c50e408fcb7d920c5ee070d19e19f0347f7073cf86b45046f3e30bd30ab8174115c539020fbf404faf5fc6e55dc7df1ad27accb45f1b2acf2db1d325e6
22 +DIST nbconvert-6.4.0.tar.gz 901586 BLAKE2B 85087046fe9a211c077165f47c03e7b025c770e2d409278703ddeef3c84b3d60e1ad28650f67fb9d68b72ad077db5bbd99af5c81ddf94fd7bf67471701dbdc4a SHA512 12662cca240a4c57a41e3bc7fedebd51c6fb83a0740afa7acfcc25424ca544a44b4dbfecfb9edb396360866de0b8fafad124fbb87c46c6f796661a7f40e96f68
23
24 diff --git a/dev-python/nbconvert/nbconvert-6.4.0.ebuild b/dev-python/nbconvert/nbconvert-6.4.0.ebuild
25 new file mode 100644
26 index 000000000000..3b031affd2a1
27 --- /dev/null
28 +++ b/dev-python/nbconvert/nbconvert-6.4.0.ebuild
29 @@ -0,0 +1,73 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Converting Jupyter Notebooks"
39 +HOMEPAGE="https://nbconvert.readthedocs.io/"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
45 +
46 +RDEPEND="
47 + dev-python/bleach[${PYTHON_USEDEP}]
48 + dev-python/defusedxml[${PYTHON_USEDEP}]
49 + >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}]
50 + dev-python/jinja[${PYTHON_USEDEP}]
51 + dev-python/jupyter_core[${PYTHON_USEDEP}]
52 + dev-python/jupyterlab_pygments[${PYTHON_USEDEP}]
53 + >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}]
54 + dev-python/nbclient[${PYTHON_USEDEP}]
55 + dev-python/nbformat[${PYTHON_USEDEP}]
56 + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}]
57 + dev-python/pygments[${PYTHON_USEDEP}]
58 + >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}]
59 + dev-python/testpath[${PYTHON_USEDEP}]
60 + www-servers/tornado[${PYTHON_USEDEP}]
61 +"
62 +# Skip inkscape on hppa b/c tests should skip it gracefully if not around
63 +# It's a heavy dependency.
64 +BDEPEND="
65 + test? (
66 + dev-python/pebble[${PYTHON_USEDEP}]
67 + dev-python/ipykernel[${PYTHON_USEDEP}]
68 + dev-python/ipywidgets[${PYTHON_USEDEP}]
69 + >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}]
70 + !hppa? ( media-gfx/inkscape )
71 + )
72 +"
73 +
74 +distutils_enable_tests pytest
75 +
76 +src_test() {
77 + mkdir -p "${HOME}/.local" || die
78 + cp -r share "${HOME}/.local/" || die
79 + distutils-r1_src_test
80 +}
81 +
82 +python_test() {
83 + local EPYTEST_DESELECT=(
84 + # Missing pyppeteer for now
85 + # TODO: Doesn't skip?
86 + nbconvert/exporters/tests/test_webpdf.py
87 + # Needs pyppeteer too
88 + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium'
89 + )
90 +
91 + distutils_install_for_testing bdist_egg
92 + cd "${TEST_DIR}"/lib || die
93 + epytest --pyargs nbconvert
94 +}
95 +
96 +pkg_postinst() {
97 + if ! has_version app-text/pandoc ; then
98 + einfo "Pandoc is required for converting to formats other than Python,"
99 + einfo "HTML, and Markdown. If you need this functionality, install"
100 + einfo "app-text/pandoc."
101 + fi
102 +}