1 |
commit: 6c1e8db8264fbed7978e601de1d9c0e618d3bf42 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 08:42:16 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 09:11:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1e8db8 |
7 |
|
8 |
dev-python/notebook: 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/notebook/notebook-6.1.3-r1.ebuild | 93 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 93 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/notebook/notebook-6.1.3-r1.ebuild b/dev-python/notebook/notebook-6.1.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..2f974c926f2 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/notebook/notebook-6.1.3-r1.ebuild |
20 |
@@ -0,0 +1,93 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
27 |
+PYTHON_COMPAT=( python3_{7..9} ) |
28 |
+PYTHON_REQ_USE="threads(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Jupyter Interactive Notebook" |
33 |
+HOMEPAGE="https://jupyter.org" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="BSD" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
39 |
+ |
40 |
+RDEPEND=" |
41 |
+ >=dev-libs/mathjax-2.4 |
42 |
+ dev-python/argon2-cffi[${PYTHON_USEDEP}] |
43 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/terminado-0.8.3[${PYTHON_USEDEP}] |
45 |
+ >=www-servers/tornado-5.0[${PYTHON_USEDEP}] |
46 |
+ dev-python/ipython_genutils[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/jupyter_core-4.6.1[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/pyzmq-17[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}] |
51 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/nbconvert-4.2.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
54 |
+ dev-python/send2trash[${PYTHON_USEDEP}] |
55 |
+ dev-python/prometheus_client[${PYTHON_USEDEP}]" |
56 |
+ |
57 |
+# sphinx 2+ seems to have a problem with its github plugin. temporarily adding |
58 |
+# a version constraint. |
59 |
+BDEPEND=" |
60 |
+ test? ( |
61 |
+ dev-python/nose[${PYTHON_USEDEP}] |
62 |
+ dev-python/nose_warnings_filters[${PYTHON_USEDEP}] |
63 |
+ dev-python/requests[${PYTHON_USEDEP}] |
64 |
+ dev-python/requests-unixsocket[${PYTHON_USEDEP}] |
65 |
+ ) |
66 |
+ " |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${PN}"-5.7.0-no-mathjax.patch |
70 |
+) |
71 |
+ |
72 |
+distutils_enable_tests pytest |
73 |
+ |
74 |
+python_prepare_all() { |
75 |
+ # disable bundled mathjax |
76 |
+ sed -i 's/^.*MathJax.*$//' bower.json || die |
77 |
+ |
78 |
+ # require geckodriver |
79 |
+ rm -r notebook/tests/selenium || die |
80 |
+ # trash doesn't seem to work for us |
81 |
+ sed -e 's:test_delete:_&:' \ |
82 |
+ -i notebook/services/contents/tests/test_manager.py || die |
83 |
+ sed -e 's:test_checkpoints_follow_file:_&:' \ |
84 |
+ -e 's:test_delete:_&:' \ |
85 |
+ -i notebook/services/contents/tests/test_contents_api.py || die |
86 |
+ # network-sandbox? |
87 |
+ sed -e 's:test_connections:_&:' \ |
88 |
+ -e 's:test_culling:_&:' \ |
89 |
+ -i notebook/services/kernels/tests/test_kernels_api.py || die |
90 |
+ |
91 |
+ sed -i -e "/'bdist_egg':/d" setup.py || die |
92 |
+ |
93 |
+ distutils-r1_python_prepare_all |
94 |
+} |
95 |
+ |
96 |
+python_test() { |
97 |
+ distutils_install_for_testing |
98 |
+ local -x PATH=${TEST_DIR}/scripts:${PATH} |
99 |
+ pytest -vv || die "Tests failed with ${EPYTHON}" |
100 |
+} |
101 |
+ |
102 |
+python_install() { |
103 |
+ distutils-r1_python_install |
104 |
+ |
105 |
+ ln -sf \ |
106 |
+ "${EPREFIX}/usr/share/mathjax" \ |
107 |
+ "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die |
108 |
+} |
109 |
+ |
110 |
+pkg_preinst() { |
111 |
+ # remove old mathjax folder if present |
112 |
+ rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || die |
113 |
+} |