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: Tue, 29 Mar 2022 08:34:04
Message-Id: 1648542834.0f48a368c212ee0ed6c1d1cce59c9a5c134e1886.mgorny@gentoo
1 commit: 0f48a368c212ee0ed6c1d1cce59c9a5c134e1886
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 08:11:32 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 08:33:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f48a368
7
8 dev-python/nbconvert: Bump to 6.4.5
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.4.5.ebuild | 73 +++++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest
17 index cd4da69df035..f8cb1542fffe 100644
18 --- a/dev-python/nbconvert/Manifest
19 +++ b/dev-python/nbconvert/Manifest
20 @@ -1,2 +1,3 @@
21 DIST nbconvert-6.4.2.tar.gz 902691 BLAKE2B ee61836ac423db0803d90b92f5cfce7e53e311637dfff7e31e5506fc1588a41515e984860bc56f617b0e0add033c41e6d2099f2abfdda7f31015f6e751110639 SHA512 325637844044ff4a118ca7803e9803fd6909667e017dae04859f58a02e1aadc8b8c699f9b9612bd47991a4c06a23acd526abdcbf1a219e29d985001ae01237bb
22 DIST nbconvert-6.4.4.tar.gz 906988 BLAKE2B 84ea6726804ccb738995df1e2e961a9816d3bf9c77034d464afbfa2ba0cf3ce19c1f6af1775fa027795ba3faeaacac765decce2d309f8a60a27e76934cdb356a SHA512 2b319fcc13c6b2addc7e1ca319f36e8a37e8390eb0d8d8df9f9456e7ae816b93ec30ab00a1003894c92091030658920729f0e31fdb5031dccb3f36b38b5d8f99
23 +DIST nbconvert-6.4.5.tar.gz 906309 BLAKE2B 5aee22eb9ce6bb36e04cc3b3db5460041b0a2dfb4afeb1e4787e941d6815f22b7621104ca6d14cb0977c5d09f9a0fade8a5787416b5f55ca1b09149730560bf7 SHA512 9a32eceaff065016baea9fc79478aeb8981f55a2cd47889e640815f2bf924df201d9ce72a4b615d533bcadbd681900678d30de61f777ae4f12bd9fce62d73622
24
25 diff --git a/dev-python/nbconvert/nbconvert-6.4.5.ebuild b/dev-python/nbconvert/nbconvert-6.4.5.ebuild
26 new file mode 100644
27 index 000000000000..ed66dc80cf13
28 --- /dev/null
29 +++ b/dev-python/nbconvert/nbconvert-6.4.5.ebuild
30 @@ -0,0 +1,73 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Converting Jupyter Notebooks"
42 +HOMEPAGE="https://nbconvert.readthedocs.io/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
48 +
49 +RDEPEND="
50 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
51 + dev-python/bleach[${PYTHON_USEDEP}]
52 + dev-python/defusedxml[${PYTHON_USEDEP}]
53 + >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}]
54 + dev-python/jinja[${PYTHON_USEDEP}]
55 + dev-python/jupyter_core[${PYTHON_USEDEP}]
56 + dev-python/jupyterlab_pygments[${PYTHON_USEDEP}]
57 + >=dev-python/markupsafe-2.0[${PYTHON_USEDEP}]
58 + >=dev-python/mistune-0.8.1[${PYTHON_USEDEP}]
59 + <dev-python/mistune-2[${PYTHON_USEDEP}]
60 + dev-python/nbclient[${PYTHON_USEDEP}]
61 + dev-python/nbformat[${PYTHON_USEDEP}]
62 + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}]
63 + dev-python/pygments[${PYTHON_USEDEP}]
64 + >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}]
65 + dev-python/testpath[${PYTHON_USEDEP}]
66 + www-servers/tornado[${PYTHON_USEDEP}]
67 +"
68 +BDEPEND="
69 + test? (
70 + dev-python/pebble[${PYTHON_USEDEP}]
71 + dev-python/ipykernel[${PYTHON_USEDEP}]
72 + dev-python/ipywidgets[${PYTHON_USEDEP}]
73 + >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}]
74 + )
75 +"
76 +
77 +distutils_enable_tests pytest
78 +
79 +src_test() {
80 + mkdir -p "${HOME}/.local" || die
81 + cp -r share "${HOME}/.local/" || die
82 + distutils-r1_src_test
83 +}
84 +
85 +python_test() {
86 + local EPYTEST_DESELECT=(
87 + # Missing pyppeteer for now
88 + # TODO: Doesn't skip?
89 + nbconvert/exporters/tests/test_webpdf.py
90 + # Needs pyppeteer too
91 + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium'
92 + )
93 +
94 + epytest --pyargs nbconvert
95 +}
96 +
97 +pkg_postinst() {
98 + if ! has_version app-text/pandoc ; then
99 + einfo "Pandoc is required for converting to formats other than Python,"
100 + einfo "HTML, and Markdown. If you need this functionality, install"
101 + einfo "app-text/pandoc."
102 + fi
103 +}