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/nbclassic/
Date: Fri, 04 Nov 2022 08:39:11
Message-Id: 1667551135.0e944de23af20f4f46e711f711d89607cbe28672.arthurzam@gentoo
1 commit: 0e944de23af20f4f46e711f711d89607cbe28672
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 08:32:26 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 08:38:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e944de2
7
8 dev-python/nbclassic: add 0.4.8
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/nbclassic/Manifest | 1 +
13 dev-python/nbclassic/nbclassic-0.4.8.ebuild | 66 +++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/nbclassic/Manifest b/dev-python/nbclassic/Manifest
17 index e4c1e3d4f50e..8fcd87979b4d 100644
18 --- a/dev-python/nbclassic/Manifest
19 +++ b/dev-python/nbclassic/Manifest
20 @@ -1,2 +1,3 @@
21 DIST nbclassic-0.4.6.tar.gz 19870837 BLAKE2B aba744557f6a87fd95669c0736c314714f2318abe65ed5ca0d5c4236245e27bfde52fe486e43a7369587103459598540e15738d002da859413f3f59d87f5358c SHA512 915265679194b8101ef7f11fd6a76cfa2c238d2b533f40bd3dd9f91b12488f9f5738a0f5ba06882a2898e231525a8b160506cb07f0c0837a64af6fdca1295065
22 DIST nbclassic-0.4.7.tar.gz 19871431 BLAKE2B ea9b77c2676e4f70a6785b5cceaed6f233346cbc878c83e14faf23c50d4340106df0f84ee3a20bfab3f02daae5b10123ef6cc83e4d147f5d63017f02a463df1b SHA512 19ffff062fe24316e658af253210fd683b4a950b5913e978eeb98af42e76ce4c1d4dcf164c499d20814c2fe2bd9b1fcd7d09c513e71cc75615cc378f00308556
23 +DIST nbclassic-0.4.8.tar.gz 19875247 BLAKE2B f6a4ff226ebd7c39fa657e06c1854e24ef7e50e893cc1a0b52c0cef194f8638b26a3b4a74d6d4077c055470bf1a7895995e184f3678b1157813981223631f6a6 SHA512 a0b6cc7823da3e7bd3ae7627994fd6a0e79adcc201763e6597e41d0f2a1fe287edb38903e4240702a34e20bd5e3c32c5460ca3b3355f59585bd2aa8dc46276f2
24
25 diff --git a/dev-python/nbclassic/nbclassic-0.4.8.ebuild b/dev-python/nbclassic/nbclassic-0.4.8.ebuild
26 new file mode 100644
27 index 000000000000..941985dcdd52
28 --- /dev/null
29 +++ b/dev-python/nbclassic/nbclassic-0.4.8.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +DISTUTILS_USE_PEP517=jupyter
38 +
39 +inherit distutils-r1 xdg-utils
40 +
41 +DESCRIPTION="Jupyter Notebook as a Jupyter Server Extension"
42 +HOMEPAGE="
43 + https://jupyter.org/
44 + https://github.com/jupyter/nbclassic/
45 + https://pypi.org/project/nbclassic/
46 +"
47 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
48 +
49 +LICENSE="BSD"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +
53 +RDEPEND="
54 + >=dev-python/jupyter_server-1.17.0[${PYTHON_USEDEP}]
55 + <dev-python/notebook-7[${PYTHON_USEDEP}]
56 + >=dev-python/notebook_shim-0.1.0[${PYTHON_USEDEP}]
57 +"
58 +
59 +# pytest-console-scripts seem unused
60 +BDEPEND="
61 + test? (
62 + dev-python/pytest-tornasync[${PYTHON_USEDEP}]
63 + )
64 + doc? (
65 + virtual/pandoc
66 + )
67 +"
68 +
69 +distutils_enable_tests pytest
70 +distutils_enable_sphinx docs/source \
71 + dev-python/sphinx_rtd_theme \
72 + dev-python/nbsphinx \
73 + dev-python/sphinxcontrib-github-alt \
74 + dev-python/myst_parser \
75 + dev-python/ipython_genutils
76 +
77 +python_test() {
78 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
79 + epytest -p pytest_tornasync.plugin
80 +}
81 +
82 +python_install_all() {
83 + distutils-r1_python_install_all
84 + # move /usr/etc stuff to /etc
85 + mv "${ED}/usr/etc" "${ED}/etc" || die
86 +}
87 +
88 +pkg_postinst() {
89 + xdg_desktop_database_update
90 + xdg_icon_cache_update
91 +}
92 +
93 +pkg_postrm() {
94 + xdg_desktop_database_update
95 + xdg_icon_cache_update
96 +}