Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbconvert/
Date: Sat, 25 Sep 2021 07:45:53
Message-Id: 1632555915.393bfea6ccfecd1de5c2ab63411f7fc3fd5e82b5.mgorny@gentoo
1 commit: 393bfea6ccfecd1de5c2ab63411f7fc3fd5e82b5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 25 06:39:42 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 25 07:45:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=393bfea6
7
8 dev-python/nbconvert: Bump to 6.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/nbconvert/Manifest | 1 +
13 dev-python/nbconvert/nbconvert-6.2.0.ebuild | 71 +++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest
17 index 88f54fefe08..524cfbd65ad 100644
18 --- a/dev-python/nbconvert/Manifest
19 +++ b/dev-python/nbconvert/Manifest
20 @@ -1 +1,2 @@
21 DIST nbconvert-6.0.7.tar.gz 896833 BLAKE2B 1b5b39144509aa9f61dc1e9675b112d69ed2e2f9859f3ce7ccfac517d89fff0010062c03ded1c3db571c84dd8d4f8ba12e4851245f370d2e671d24921dd50ab6 SHA512 3c78fa4d777a79a08606a39bb31f6b329dc9d28c1ef2ea9f3253746dce853a295e8fe85b14c65b04762aa5acd5facc879232a375875a2ca6dc9477cc1ab88786
22 +DIST nbconvert-6.2.0.tar.gz 898501 BLAKE2B 6dfcd33c4bf625a2f68dd4b89cc15d100a2b036e08f3918731f019d171224c218f669e07fd7d6aed712c52448dbf71e6173a49b560faa7d5f13e3cce62df0fff SHA512 ed67cafd23dbe9d8e08292877cae9c889518218659f2ca615fe52fe937f70cdca3e300a28dbda81578ede7784458443bb9fa1994e05c154dd5473015b91c9af3
23
24 diff --git a/dev-python/nbconvert/nbconvert-6.2.0.ebuild b/dev-python/nbconvert/nbconvert-6.2.0.ebuild
25 new file mode 100644
26 index 00000000000..7278542508d
27 --- /dev/null
28 +++ b/dev-python/nbconvert/nbconvert-6.2.0.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2021 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 ~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.0[${PYTHON_USEDEP}]
59 + dev-python/testpath[${PYTHON_USEDEP}]
60 + www-servers/tornado[${PYTHON_USEDEP}]
61 +"
62 +BDEPEND="
63 + test? (
64 + dev-python/pebble[${PYTHON_USEDEP}]
65 + dev-python/ipykernel[${PYTHON_USEDEP}]
66 + dev-python/ipywidgets[${PYTHON_USEDEP}]
67 + >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}]
68 + media-gfx/inkscape
69 + )
70 +"
71 +
72 +distutils_enable_tests pytest
73 +
74 +src_test() {
75 + mkdir -p "${HOME}/.local" || die
76 + cp -r share "${HOME}/.local/" || die
77 + distutils-r1_src_test
78 +}
79 +
80 +python_test() {
81 + local EPYTEST_DESELECT=(
82 + # Missing pyppeteer for now
83 + # TODO: Doesn't skip?
84 + nbconvert/exporters/tests/test_webpdf.py
85 + # Needs pyppeteer too
86 + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium'
87 + )
88 +
89 + distutils_install_for_testing bdist_egg
90 + cd "${TEST_DIR}"/lib || die
91 + epytest --pyargs nbconvert
92 +}
93 +
94 +pkg_postinst() {
95 + if ! has_version app-text/pandoc ; then
96 + einfo "Pandoc is required for converting to formats other than Python,"
97 + einfo "HTML, and Markdown. If you need this functionality, install"
98 + einfo "app-text/pandoc."
99 + fi
100 +}