1 |
commit: a26f30ffad1fcaa8f8585215f82784fb0be33fc3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 8 04:46:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 8 05:34:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a26f30ff |
7 |
|
8 |
dev-python/notebook: Bump to 6.4.12 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/notebook/Manifest | 1 + |
13 |
dev-python/notebook/notebook-6.4.12.ebuild | 97 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 98 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/notebook/Manifest b/dev-python/notebook/Manifest |
17 |
index b84b022b1b03..d82aa2ccd91a 100644 |
18 |
--- a/dev-python/notebook/Manifest |
19 |
+++ b/dev-python/notebook/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST notebook-6.4.11.tar.gz 14373938 BLAKE2B 3f6aa2f86c205dec6b66a8eb3a6d3509f8ba0f80d17f7123bfbede41b7ff6d986271a8eeb32916fdf71c56105b0571192c71740836d34baf88b52a35ea0c4a59 SHA512 beabc84e3d528b0786363c705062717378e73aa824ffe6ce8706f6ed765744f40f651bd4e0910d6a0302990f9efcabea1af51c6894106c49869761bcf217084a |
22 |
+DIST notebook-6.4.12.tar.gz 14389641 BLAKE2B 1cda6a1eb1f4e7ccce964153bdce8de243588ffd4abcc5ab6687ba0ea347d68c5dd239c2af5bf93809409d850747db28df72be5c2ec03bfd06b725976ae1c599 SHA512 1314cfebe97ddada61e1013fdfd606bed08908c06b58e59f2fda6e63c43a1158eeed6a93a5cddbb609ecad0347bf80ee3a74747104fd29942629734c1ea749f0 |
23 |
|
24 |
diff --git a/dev-python/notebook/notebook-6.4.12.ebuild b/dev-python/notebook/notebook-6.4.12.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..05106aece83b |
27 |
--- /dev/null |
28 |
+++ b/dev-python/notebook/notebook-6.4.12.ebuild |
29 |
@@ -0,0 +1,97 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="Jupyter Interactive Notebook" |
42 |
+HOMEPAGE="https://jupyter.org" |
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-libs/mathjax-2.4 |
51 |
+ dev-python/argon2-cffi[${PYTHON_USEDEP}] |
52 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/terminado-0.8.3[${PYTHON_USEDEP}] |
54 |
+ >=www-servers/tornado-6.0[${PYTHON_USEDEP}] |
55 |
+ dev-python/ipython_genutils[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/jupyter_core-4.6.1[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pyzmq-17[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}] |
60 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/nbconvert-4.2.0[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/nest_asyncio-1.5[${PYTHON_USEDEP}] |
63 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/send2trash-1.8.0[${PYTHON_USEDEP}] |
65 |
+ dev-python/prometheus_client[${PYTHON_USEDEP}]" |
66 |
+ |
67 |
+BDEPEND=" |
68 |
+ >=dev-python/jupyter_packaging-0.9[${PYTHON_USEDEP}] |
69 |
+ test? ( |
70 |
+ dev-python/requests[${PYTHON_USEDEP}] |
71 |
+ dev-python/requests-unixsocket[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}"/notebook-6.4.11-no-mathjax.patch |
77 |
+) |
78 |
+ |
79 |
+distutils_enable_tests pytest |
80 |
+ |
81 |
+python_prepare_all() { |
82 |
+ # disable bundled mathjax |
83 |
+ sed -i 's/^.*MathJax.*$//' bower.json || die |
84 |
+ |
85 |
+ distutils-r1_python_prepare_all |
86 |
+} |
87 |
+ |
88 |
+EPYTEST_DESELECT=( |
89 |
+ # trash doesn't seem to work for us |
90 |
+ notebook/services/contents/tests/test_contents_api.py::APITest::test_checkpoints_follow_file |
91 |
+ notebook/services/contents/tests/test_contents_api.py::APITest::test_delete |
92 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_checkpoints_follow_file |
93 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete |
94 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_dirs |
95 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_non_empty_dir |
96 |
+ notebook/services/contents/tests/test_manager.py::TestContentsManager::test_delete |
97 |
+ notebook/services/contents/tests/test_manager.py::TestContentsManagerNoAtomic::test_delete |
98 |
+ # TODO |
99 |
+ notebook/services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections |
100 |
+ notebook/services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections |
101 |
+ notebook/services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling |
102 |
+ notebook/services/nbconvert/tests/test_nbconvert_api.py::APITest::test_list_formats |
103 |
+) |
104 |
+ |
105 |
+EPYTEST_IGNORE=( |
106 |
+ # selenium tests require geckodriver |
107 |
+ notebook/tests/selenium |
108 |
+) |
109 |
+ |
110 |
+python_install() { |
111 |
+ distutils-r1_python_install |
112 |
+ |
113 |
+ ln -sf \ |
114 |
+ "${EPREFIX}/usr/share/mathjax" \ |
115 |
+ "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ xdg_desktop_database_update |
120 |
+ xdg_icon_cache_update |
121 |
+} |
122 |
+ |
123 |
+pkg_postrm() { |
124 |
+ xdg_desktop_database_update |
125 |
+ xdg_icon_cache_update |
126 |
+} |