Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipywidgets/
Date: Thu, 18 Aug 2022 18:11:54
Message-Id: 1660846298.02c23f75ac47f50e91114094d95d63918835cc2f.arthurzam@gentoo
1 commit: 02c23f75ac47f50e91114094d95d63918835cc2f
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 18 17:26:21 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 18:11:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02c23f75
7
8 dev-python/ipywidgets: add 8.0.1
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/ipywidgets/Manifest | 1 +
13 dev-python/ipywidgets/ipywidgets-8.0.1.ebuild | 43 +++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-python/ipywidgets/Manifest b/dev-python/ipywidgets/Manifest
17 index 26c03187d5c5..818851ad02b9 100644
18 --- a/dev-python/ipywidgets/Manifest
19 +++ b/dev-python/ipywidgets/Manifest
20 @@ -1 +1,2 @@
21 DIST ipywidgets-7.7.1.tar.gz 4075672 BLAKE2B 1e52d3b3b9380f42f67ad658f6e8579a61220e7160c10b1569437c1fd74ce962fbe746f3a6a3e302b5417812f69807deddc0ae3fe255b8e2f213d65103d55362 SHA512 ed6bf1a59a511714a3af96cc66e7665b9b264f56862ca4ea02d943137fcc6018da8fcb8dff4a8f9157bfb46cc19b7d58ceaff028e84f2f8d18ee16e57ce7fb96
22 +DIST ipywidgets-8.0.1.tar.gz 111771 BLAKE2B 78217eaf6386f18a634c016562925213233ed6fc3b35266fede83f66e831f761766be0db3e23ef694edd9bc6089ff987df97f6addf2a17bc5ef1d4b6d59585b7 SHA512 cb443734897f786a86a34ab6177d84e32d00155513c835756dc53a76b7201144e0cb34c3701c06b07df22de78f6d43973f4b9be456c3b4a22db39c16de4a4dc6
23
24 diff --git a/dev-python/ipywidgets/ipywidgets-8.0.1.ebuild b/dev-python/ipywidgets/ipywidgets-8.0.1.ebuild
25 new file mode 100644
26 index 000000000000..1067cdc66e26
27 --- /dev/null
28 +++ b/dev-python/ipywidgets/ipywidgets-8.0.1.ebuild
29 @@ -0,0 +1,43 @@
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
40 +
41 +DESCRIPTION="IPython HTML widgets for Jupyter"
42 +HOMEPAGE="
43 + https://ipywidgets.readthedocs.io/
44 + https://github.com/jupyter-widgets/ipywidgets/
45 + https://pypi.org/project/ipywidgets/
46 +"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
52 +
53 +RDEPEND="
54 + >=dev-python/ipykernel-4.5.1[${PYTHON_USEDEP}]
55 + >=dev-python/ipython_genutils-0.2.0[${PYTHON_USEDEP}]
56 + >=dev-python/traitlets-4.3.1[${PYTHON_USEDEP}]
57 + >=dev-python/widgetsnbextension-3.6.0[${PYTHON_USEDEP}]
58 +"
59 +BDEPEND="
60 + test? (
61 + dev-python/jsonschema[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +distutils_enable_tests pytest
66 +
67 +src_prepare() {
68 + # upstream hack to autoconfigure ipywidgets in jupyter
69 + # we don't have jupyterlab_widgets packaged
70 + sed -i -e '/jupyterlab_widgets/d' setup.py || die
71 + distutils-r1_src_prepare
72 +}