1 |
commit: 1305bbf63921baf14821bf7d71e06f08cce5f4b0 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 4 20:30:41 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 4 22:58:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1305bbf6 |
7 |
|
8 |
dev-python/nbformat: drop py2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/685040 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
13 |
|
14 |
dev-python/nbformat/nbformat-4.4.0-r1.ebuild | 57 ++++++++++++++++++++++++++++ |
15 |
1 file changed, 57 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/nbformat/nbformat-4.4.0-r1.ebuild b/dev-python/nbformat/nbformat-4.4.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..854ea496fff |
20 |
--- /dev/null |
21 |
+++ b/dev-python/nbformat/nbformat-4.4.0-r1.ebuild |
22 |
@@ -0,0 +1,57 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
29 |
+PYTHON_REQ_USE='sqlite' |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Reference implementation of the Jupyter Notebook format" |
34 |
+HOMEPAGE="https://jupyter.org" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
40 |
+IUSE="doc test" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ >=dev-python/jsonschema-2.4.0[${PYTHON_USEDEP}] |
44 |
+ dev-python/ipython_genutils[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/traitlets-4.1[${PYTHON_USEDEP}] |
46 |
+ dev-python/jupyter_core[${PYTHON_USEDEP}] |
47 |
+ " |
48 |
+DEPEND="${RDEPEND} |
49 |
+ doc? ( |
50 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
51 |
+ dev-python/numpydoc[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+ test? ( |
54 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+ " |
58 |
+ |
59 |
+python_prepare_all() { |
60 |
+ # Prevent un-needed download during build |
61 |
+ if use doc; then |
62 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die |
63 |
+ fi |
64 |
+ |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |
67 |
+ |
68 |
+python_compile_all() { |
69 |
+ if use doc; then |
70 |
+ emake -C docs html |
71 |
+ HTML_DOCS=( docs/_build/html/. ) |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ distutils_install_for_testing |
77 |
+ cd "${TEST_DIR}"/lib || die |
78 |
+ pytest -vv nbformat || die |
79 |
+} |