Gentoo Archives: gentoo-commits

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