Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/nbconvert/
Date: Fri, 30 Oct 2015 13:45:22
Message-Id: 1446212368.e1d259fa37e81fbff05fdd0e19dafe76f30d5a11.jlec@gentoo
1 commit: e1d259fa37e81fbff05fdd0e19dafe76f30d5a11
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 13:39:28 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 13:39:28 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e1d259fa
7
8 dev-python/nbconvert: Version Bump
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/nbconvert/nbconvert-4.1.0.ebuild | 78 +++++++++++++++++++++++++++++
14 1 file changed, 78 insertions(+)
15
16 diff --git a/dev-python/nbconvert/nbconvert-4.1.0.ebuild b/dev-python/nbconvert/nbconvert-4.1.0.ebuild
17 new file mode 100644
18 index 0000000..0eab8bc
19 --- /dev/null
20 +++ b/dev-python/nbconvert/nbconvert-4.1.0.ebuild
21 @@ -0,0 +1,78 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
29 +
30 +inherit distutils-r1
31 +
32 +MY_PN="nbconvert"
33 +
34 +DESCRIPTION="Converting Jupyter Notebooks"
35 +HOMEPAGE="http://jupyter.org"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +LICENSE="BSD"
40 +SLOT="0"
41 +IUSE="doc test"
42 +
43 +PATCHES=(
44 + "${FILESDIR}"/${PN}-4.0.0-docs-Makefile.patch
45 +)
46 +
47 +RDEPEND="
48 + dev-python/jupyter_core[${PYTHON_USEDEP}]
49 + dev-python/nbformat[${PYTHON_USEDEP}]
50 + dev-python/mistune[${PYTHON_USEDEP}]
51 + dev-python/jinja[${PYTHON_USEDEP}]
52 + dev-python/pygments[${PYTHON_USEDEP}]
53 + dev-python/traitlets[${PYTHON_USEDEP}]
54 + "
55 +DEPEND="${RDEPEND}
56 + doc? (
57 + dev-python/ipython[${PYTHON_USEDEP}]
58 + dev-python/jupyter_client[${PYTHON_USEDEP}]
59 + dev-python/sphinx[${PYTHON_USEDEP}]
60 + app-text/pandoc
61 + )
62 + test? (
63 + dev-python/nose[${PYTHON_USEDEP}]
64 + dev-python/coverage[${PYTHON_USEDEP}]
65 + dev-python/ipykernel[${PYTHON_USEDEP}]
66 + )
67 + "
68 +
69 +python_prepare_all() {
70 + # Prevent un-needed download during build
71 + if use doc; then
72 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
73 + fi
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_compile_all() {
79 + use doc && emake -C docs html
80 +}
81 +
82 +python_test() {
83 + distutils_install_for_testing
84 + cd "${TEST_DIR}"/lib || die
85 + nosetests --with-coverage --cover-package=nbconvert nbconvert || die
86 +}
87 +
88 +python_install_all() {
89 + use doc && HTML_DOCS=( docs/build/html/. )
90 + distutils-r1_python_install_all
91 +}
92 +
93 +pkg_postinst() {
94 + if ! has_version app-text/pandoc ; then
95 + einfo "Pandoc is required for converting to formats other than Python,"
96 + einfo "HTML, and Markdown. If you need this functionality, install"
97 + einfo "app-text/pandoc."
98 + fi
99 +}