1 |
commit: 0704961c4618334084ec66bfe0675c844163df97 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 08:43:17 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 09:11:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0704961c |
7 |
|
8 |
dev-python/nbconvert: Remove py3.6 in new rev due to ipython |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/nbconvert/nbconvert-5.6.1-r1.ebuild | 70 ++++++++++++++++++++++++++ |
13 |
1 file changed, 70 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/nbconvert/nbconvert-5.6.1-r1.ebuild b/dev-python/nbconvert/nbconvert-5.6.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..44cb131fda5 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/nbconvert/nbconvert-5.6.1-r1.ebuild |
20 |
@@ -0,0 +1,70 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{7..9} ) |
27 |
+ |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Converting Jupyter Notebooks" |
31 |
+HOMEPAGE="https://nbconvert.readthedocs.io/" |
32 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
37 |
+IUSE="test" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ dev-python/bleach[${PYTHON_USEDEP}] |
41 |
+ dev-python/defusedxml[${PYTHON_USEDEP}] |
42 |
+ >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}] |
43 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
44 |
+ dev-python/jupyter_core[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}] |
46 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] |
48 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
50 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
51 |
+ www-servers/tornado[${PYTHON_USEDEP}] |
52 |
+" |
53 |
+BDEPEND=" |
54 |
+ test? ( |
55 |
+ dev-python/pebble[${PYTHON_USEDEP}] |
56 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
57 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}] |
59 |
+ media-gfx/inkscape |
60 |
+ ) |
61 |
+" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-inkscape-1.patch |
67 |
+ "${FILESDIR}"/${P}-py39.patch |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ # assumes old inkscape output? |
72 |
+ sed -i -e '/SVG\.ipynb/d' \ |
73 |
+ nbconvert/preprocessors/tests/test_execute.py || die |
74 |
+ |
75 |
+ distutils-r1_src_prepare |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ distutils_install_for_testing bdist_egg |
80 |
+ cd "${TEST_DIR}"/lib || die |
81 |
+ pytest -vv --pyargs nbconvert || die |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ if ! has_version app-text/pandoc ; then |
86 |
+ einfo "Pandoc is required for converting to formats other than Python," |
87 |
+ einfo "HTML, and Markdown. If you need this functionality, install" |
88 |
+ einfo "app-text/pandoc." |
89 |
+ fi |
90 |
+} |