Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbconvert/
Date: Sat, 28 Nov 2015 17:33:36
Message-Id: 1448637908.e0ebd932df16c54ecd50b97d1d5a11ea45cc0d37.jlec@gentoo
1 commit: e0ebd932df16c54ecd50b97d1d5a11ea45cc0d37
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Nov 27 15:25:08 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 15:25:08 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ebd932
7
8 dev-python/nbconvert: Import from science overlay
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-python/nbconvert/Manifest | 1 +
13 dev-python/nbconvert/metadata.xml | 13 +++++
14 dev-python/nbconvert/nbconvert-4.1.0.ebuild | 78 +++++++++++++++++++++++++++++
15 3 files changed, 92 insertions(+)
16
17 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest
18 new file mode 100644
19 index 0000000..18314c5
20 --- /dev/null
21 +++ b/dev-python/nbconvert/Manifest
22 @@ -0,0 +1 @@
23 +DIST nbconvert-4.1.0.tar.gz 263948 SHA256 e0296e45293dd127d028f678e3b6aba3f1db3283a134178bdb49eea402d4cf1c SHA512 9761cf8cdf206bd8f27c666d7b520cbd7d805353cf46b212b46ee6053b47ec6728a5926dfe59acef109c8770580c41d51aa5b943a27e72bccecc68a7d7b68bfb WHIRLPOOL 9cc27a45b00ee9914674cd14a279be1691eb8a8538803bdda127513f56dd0ce53b10745f305f8fb82abd2d19efe7c1b0284bf05f8088360d2def6c97db0c1c6e
24
25 diff --git a/dev-python/nbconvert/metadata.xml b/dev-python/nbconvert/metadata.xml
26 new file mode 100644
27 index 0000000..19af612
28 --- /dev/null
29 +++ b/dev-python/nbconvert/metadata.xml
30 @@ -0,0 +1,13 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <herd>sci</herd>
35 + <longdescription>
36 + Jupyter NBConvert converts Jupyter notebooks to various other
37 + formats via Jinja templates.
38 + </longdescription>
39 + <upstream>
40 + <remote-id type="pypi">nbconvert</remote-id>
41 + <remote-id type="github">jupyter/nbconvert</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/nbconvert/nbconvert-4.1.0.ebuild b/dev-python/nbconvert/nbconvert-4.1.0.ebuild
46 new file mode 100644
47 index 0000000..0eab8bc
48 --- /dev/null
49 +++ b/dev-python/nbconvert/nbconvert-4.1.0.ebuild
50 @@ -0,0 +1,78 @@
51 +# Copyright 1999-2015 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +# $Id$
54 +
55 +EAPI=5
56 +
57 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
58 +
59 +inherit distutils-r1
60 +
61 +MY_PN="nbconvert"
62 +
63 +DESCRIPTION="Converting Jupyter Notebooks"
64 +HOMEPAGE="http://jupyter.org"
65 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
66 +KEYWORDS="~amd64 ~x86"
67 +
68 +LICENSE="BSD"
69 +SLOT="0"
70 +IUSE="doc test"
71 +
72 +PATCHES=(
73 + "${FILESDIR}"/${PN}-4.0.0-docs-Makefile.patch
74 +)
75 +
76 +RDEPEND="
77 + dev-python/jupyter_core[${PYTHON_USEDEP}]
78 + dev-python/nbformat[${PYTHON_USEDEP}]
79 + dev-python/mistune[${PYTHON_USEDEP}]
80 + dev-python/jinja[${PYTHON_USEDEP}]
81 + dev-python/pygments[${PYTHON_USEDEP}]
82 + dev-python/traitlets[${PYTHON_USEDEP}]
83 + "
84 +DEPEND="${RDEPEND}
85 + doc? (
86 + dev-python/ipython[${PYTHON_USEDEP}]
87 + dev-python/jupyter_client[${PYTHON_USEDEP}]
88 + dev-python/sphinx[${PYTHON_USEDEP}]
89 + app-text/pandoc
90 + )
91 + test? (
92 + dev-python/nose[${PYTHON_USEDEP}]
93 + dev-python/coverage[${PYTHON_USEDEP}]
94 + dev-python/ipykernel[${PYTHON_USEDEP}]
95 + )
96 + "
97 +
98 +python_prepare_all() {
99 + # Prevent un-needed download during build
100 + if use doc; then
101 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
102 + fi
103 +
104 + distutils-r1_python_prepare_all
105 +}
106 +
107 +python_compile_all() {
108 + use doc && emake -C docs html
109 +}
110 +
111 +python_test() {
112 + distutils_install_for_testing
113 + cd "${TEST_DIR}"/lib || die
114 + nosetests --with-coverage --cover-package=nbconvert nbconvert || die
115 +}
116 +
117 +python_install_all() {
118 + use doc && HTML_DOCS=( docs/build/html/. )
119 + distutils-r1_python_install_all
120 +}
121 +
122 +pkg_postinst() {
123 + if ! has_version app-text/pandoc ; then
124 + einfo "Pandoc is required for converting to formats other than Python,"
125 + einfo "HTML, and Markdown. If you need this functionality, install"
126 + einfo "app-text/pandoc."
127 + fi
128 +}