1 |
commit: 65a43b0a1a0f58e3626e9b1d13f1858317af0147 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 13 07:16:34 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 13 07:16:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65a43b0a |
7 |
|
8 |
dev-python/nbconvert: Bump to 6.0.2 |
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.0.2.ebuild | 72 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest |
17 |
index 5c9bd41466f..b7cea49a902 100644 |
18 |
--- a/dev-python/nbconvert/Manifest |
19 |
+++ b/dev-python/nbconvert/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST nbconvert-5.6.1.tar.gz 703233 BLAKE2B e75d558aee6c66fe8e7455ecf22dbbcd2a0698380ffec80eff15aea6c70bc853daa9ab2fd1d114453bd5dfe7e75617afb9f5c1075704bfadbb59fef34bca88a9 SHA512 0c68adcb9f28ead9ec058fc2e02a9a1e6f65818709c99f7a006a59a7562b5f5ee74afe5287e41568c35542898dc1b43c4543d2386cc05a721b3f99d5cc789435 |
22 |
DIST nbconvert-6.0.1.tar.gz 838950 BLAKE2B 7ccb821bd7affab3faed0c1fb139b0641f295c71109c783e9ce40c5a4c15c2d87a327ce7c802ed3cfde2fcde4c360375dd751f9592eeda102d520aee4e94f2d5 SHA512 7c782a068fc004a42cbc2e09d8d4fbce5385a8f6fb8491fa39d14df123a00bf81e6e7f11885fe39300156ecf560b92f5631537a5956e5541ea3dcf9ec5f9f365 |
23 |
+DIST nbconvert-6.0.2.tar.gz 847737 BLAKE2B c787840ec25661a1242bd1a4ef46ca0c022fd23385da5dc48ff8ec391ad440fc70ab841fdfd1fd0a98836a4a30592ed0f121ce94895f2a70c33899c11760e43b SHA512 faad2c4e697a0189e4b156e061f1d2a13676ef0dc7703993f0d445093d83a73618bc2529fceca094797415e7468e7f067d573556bfcf793a37956c082403d5fa |
24 |
|
25 |
diff --git a/dev-python/nbconvert/nbconvert-6.0.2.ebuild b/dev-python/nbconvert/nbconvert-6.0.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..bc104bb52ac |
28 |
--- /dev/null |
29 |
+++ b/dev-python/nbconvert/nbconvert-6.0.2.ebuild |
30 |
@@ -0,0 +1,72 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7..9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Converting Jupyter Notebooks" |
41 |
+HOMEPAGE="https://nbconvert.readthedocs.io/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/bleach[${PYTHON_USEDEP}] |
50 |
+ dev-python/defusedxml[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}] |
52 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
53 |
+ dev-python/jupyter_core[${PYTHON_USEDEP}] |
54 |
+ dev-python/jupyterlab_pygments[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}] |
56 |
+ dev-python/nbclient[${PYTHON_USEDEP}] |
57 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] |
59 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
61 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
62 |
+ www-servers/tornado[${PYTHON_USEDEP}] |
63 |
+" |
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 |
+ 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 deselect=( |
84 |
+ # Missing pyppeteer for now |
85 |
+ # TODO: Doesn't skip? |
86 |
+ --deselect exporters/tests/test_webpdf.py |
87 |
+ # Needs pyppeteer too |
88 |
+ --deselect '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 |
+ pytest -vv "${deselect[@]}" --pyargs nbconvert || die "Tests failed with ${EPYTHON}" |
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 |
+} |