1 |
commit: 947dfe7da30e503285ee96fba0757ad35f1e4f18 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 15 19:55:09 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 15 20:26:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=947dfe7d |
7 |
|
8 |
dev-python/notebook: Bump to 6.4.4 |
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.4.ebuild | 100 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 101 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/notebook/Manifest b/dev-python/notebook/Manifest |
17 |
index 011dcb03210..9b94ebd2d7a 100644 |
18 |
--- a/dev-python/notebook/Manifest |
19 |
+++ b/dev-python/notebook/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST notebook-6.4.2.tar.gz 14133763 BLAKE2B 2c4f9677b014f484f7c975344f6e3aa29476b3b3bf2dd329ee527be653573f199c6d66078bc1f0787227414fb818df8df3d38e5f1bea9d3f2605f796a391cb37 SHA512 d9914c2924b7a0837295a7cfe2bdf551e1d71f35bab43bd6d12e798562c7e103f28cfdff6692e6ac5de394867071b8e1eae7a26bfd0a76b4a9304b7bea29f119 |
22 |
DIST notebook-6.4.3.tar.gz 14344061 BLAKE2B a6d12df889015801a47061b40c320f659adda19cdf37832de1fd2b0257e7b1e22439aa4fd7663595c798b4b04c8c8e720a3799bcb20b93a0229ccf26622eee04 SHA512 14bb5c1a858c2d48f19f6a9907c4e3a053e77586a9ce78f3116752a02c39056bfa02fac5ef37404b742861a66751ca765b1d329a530b09752cf54fa464ab565b |
23 |
+DIST notebook-6.4.4.tar.gz 14349204 BLAKE2B 3ea06a6433933e0de34be33bc681776a17fec05da643268a262f65146bd707f08ea6acbfe1154ba9158ac76211de78552daec22293a54ba5e0edb848790ccbbd SHA512 c78869b7d75244409cb890d43d05eb5391c27e0de29874f48aef1c22379cdcb5dc7f69969eccd6c0f1ed057ed17f85d39e43cd482866dfe6277b6a981eee39f6 |
24 |
|
25 |
diff --git a/dev-python/notebook/notebook-6.4.4.ebuild b/dev-python/notebook/notebook-6.4.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..cacbe7d854e |
28 |
--- /dev/null |
29 |
+++ b/dev-python/notebook/notebook-6.4.4.ebuild |
30 |
@@ -0,0 +1,100 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
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 ~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/ipykernel[${PYTHON_USEDEP}] |
63 |
+ dev-python/send2trash[${PYTHON_USEDEP}] |
64 |
+ dev-python/prometheus_client[${PYTHON_USEDEP}]" |
65 |
+ |
66 |
+# sphinx 2+ seems to have a problem with its github plugin. temporarily adding |
67 |
+# a version constraint. |
68 |
+BDEPEND=" |
69 |
+ test? ( |
70 |
+ dev-python/requests[${PYTHON_USEDEP}] |
71 |
+ dev-python/requests-unixsocket[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}"-5.7.0-no-mathjax.patch |
77 |
+) |
78 |
+ |
79 |
+distutils_enable_tests --install 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 |
+python_test() { |
89 |
+ local deselect=( |
90 |
+ # trash doesn't seem to work for us |
91 |
+ notebook/services/contents/tests/test_contents_api.py::APITest::test_checkpoints_follow_file |
92 |
+ notebook/services/contents/tests/test_contents_api.py::APITest::test_delete |
93 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_checkpoints_follow_file |
94 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete |
95 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_dirs |
96 |
+ notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_non_empty_dir |
97 |
+ notebook/services/contents/tests/test_manager.py::TestContentsManager::test_delete |
98 |
+ notebook/services/contents/tests/test_manager.py::TestContentsManagerNoAtomic::test_delete |
99 |
+ # TODO |
100 |
+ notebook/services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections |
101 |
+ notebook/services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections |
102 |
+ notebook/services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling |
103 |
+ ) |
104 |
+ |
105 |
+ # selenium tests require geckodriver |
106 |
+ epytest --ignore notebook/tests/selenium ${deselect[@]/#/--deselect } |
107 |
+} |
108 |
+ |
109 |
+python_install() { |
110 |
+ distutils-r1_python_install |
111 |
+ |
112 |
+ ln -sf \ |
113 |
+ "${EPREFIX}/usr/share/mathjax" \ |
114 |
+ "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die |
115 |
+} |
116 |
+ |
117 |
+pkg_preinst() { |
118 |
+ # remove old mathjax folder if present |
119 |
+ rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || die |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ xdg_desktop_database_update |
124 |
+ xdg_icon_cache_update |
125 |
+} |
126 |
+ |
127 |
+pkg_postrm() { |
128 |
+ xdg_desktop_database_update |
129 |
+ xdg_icon_cache_update |
130 |
+} |