1 |
commit: 5bacb571c81c77f6e72615d4ed76adef09fee390 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 19:57:50 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 20:18:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bacb571 |
7 |
|
8 |
dev-python/nbclient: add 0.7.2 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/nbclient/Manifest | 1 + |
13 |
dev-python/nbclient/nbclient-0.7.2.ebuild | 57 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/nbclient/Manifest b/dev-python/nbclient/Manifest |
17 |
index a8ae858da37a..e67586f0a8da 100644 |
18 |
--- a/dev-python/nbclient/Manifest |
19 |
+++ b/dev-python/nbclient/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nbclient-0.7.0.gh.tar.gz 78253 BLAKE2B 473dcef140c8e1fc8f1e97fa30859b9b9fc2dfd6f951ae52db8ab11febbb3de7f60d129424827983a2c05579cd2340e9d4e1a9d0e452a7678497fc1c7176ecf3 SHA512 93d22e2b4fe1740798b812bb4890bf2fe2c7fdd337e34b50eac3140ead73d443cdb326948b2e8511b6ccad61c7daf1efd8e7cc3664b6b1ad9dda0894ca84fff5 |
22 |
+DIST nbclient-0.7.2.gh.tar.gz 76883 BLAKE2B d90b9dd7b15757a44c86084b68b916aab663c0e20a5c1012bda9f86a0ec1104a01cd78d27bc6e510eceeee12f2356a312d8080e1568e4c54dd2e916af85dc304 SHA512 17f1bfbfa156688e895ab1a0d0f74903f43c62a373a40cfcc50a654d86ebbaeb5ed101562716140a3878a9667bb131c49e06caf2e3127160700baf181cd1c29b |
23 |
|
24 |
diff --git a/dev-python/nbclient/nbclient-0.7.2.ebuild b/dev-python/nbclient/nbclient-0.7.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..bef4d0ab4373 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/nbclient/nbclient-0.7.2.ebuild |
29 |
@@ -0,0 +1,57 @@ |
30 |
+# Copyright 2020-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=hatchling |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A client library for executing Jupyter notebooks" |
41 |
+HOMEPAGE=" |
42 |
+ https://nbclient.readthedocs.io/en/latest/ |
43 |
+ https://github.com/jupyter/nbclient/ |
44 |
+ https://pypi.org/project/nbclient/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/jupyter/nbclient/archive/v${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz |
49 |
+" |
50 |
+ |
51 |
+LICENSE="BSD" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/jupyter_client-6.1.12[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/jupyter_core-4.12[${PYTHON_USEDEP}] |
58 |
+ <dev-python/jupyter_core-5.0[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/nbformat-5.0[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/traitlets-5.3[${PYTHON_USEDEP}] |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
65 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
66 |
+ dev-python/ipywidgets[${PYTHON_USEDEP}] |
67 |
+ dev-python/nbconvert[${PYTHON_USEDEP}] |
68 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
69 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
70 |
+ dev-python/xmltodict[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+EPYTEST_DESELECT=( |
77 |
+ nbclient/tests/test_client.py::test_many_parallel_notebooks |
78 |
+ 'nbclient/tests/test_client.py::test_run_all_notebooks[Interrupt.ipynb-opts6]' |
79 |
+) |
80 |
+ |
81 |
+python_test() { |
82 |
+ # The tests run the pydevd debugger, the debugger prints a warning |
83 |
+ # in python3.11 when frozen modules are being used. |
84 |
+ # This warning makes the tests fail, silence it. |
85 |
+ PYDEVD_DISABLE_FILE_VALIDATION=1 epytest |
86 |
+} |