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/nbformat/
Date: Sat, 28 Nov 2015 17:33:26
Message-Id: 1448636959.8cf4abdaf3fafeb17997e1403172607e4791e76a.jlec@gentoo
1 commit: 8cf4abdaf3fafeb17997e1403172607e4791e76a
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Fri Nov 27 15:09:19 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 27 15:09:19 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf4abda
7
8 dev-python/nbformat: Import from science overlay
9
10 Package-Manager: portage-2.2.20.1
11
12 dev-python/nbformat/Manifest | 1 +
13 dev-python/nbformat/metadata.xml | 15 ++++++++
14 dev-python/nbformat/nbformat-4.0.1.ebuild | 60 +++++++++++++++++++++++++++++++
15 3 files changed, 76 insertions(+)
16
17 diff --git a/dev-python/nbformat/Manifest b/dev-python/nbformat/Manifest
18 new file mode 100644
19 index 0000000..f866283
20 --- /dev/null
21 +++ b/dev-python/nbformat/Manifest
22 @@ -0,0 +1 @@
23 +DIST nbformat-4.0.1.tar.gz 105767 SHA256 5261c957589b9dfcd387c338d59375162ba9ca82c69e378961a1f4e641285db5 SHA512 f73e8cffc61825aa8b7b0ef3b842cba51baf2cdf0c5d0035e2e7cb51f71c6c819f09201367a3b342c2736492dee1e78c519961aaea8f2cc4b5e69a1545085d2a WHIRLPOOL 9b08003c456e00c529b7bf8e786d57a583e53e5a1e7e9eb4c3cc492c5b1d60e76579c9102e6c56749d546a9a124d475687d4ec1d71e0f3634698d5e30499db93
24
25 diff --git a/dev-python/nbformat/metadata.xml b/dev-python/nbformat/metadata.xml
26 new file mode 100644
27 index 0000000..cf2dd6b
28 --- /dev/null
29 +++ b/dev-python/nbformat/metadata.xml
30 @@ -0,0 +1,15 @@
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 + Jupyther nbformat contains the reference implementation of the
37 + Jupyter Notebook format, and Python APIs for working with
38 + notebooks. There is also a JSON schema for notebook format
39 + versions &gt;= 3.
40 + </longdescription>
41 + <upstream>
42 + <remote-id type="pypi">nbformat</remote-id>
43 + <remote-id type="github">jupyter/nbformat</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/dev-python/nbformat/nbformat-4.0.1.ebuild b/dev-python/nbformat/nbformat-4.0.1.ebuild
48 new file mode 100644
49 index 0000000..449d99c
50 --- /dev/null
51 +++ b/dev-python/nbformat/nbformat-4.0.1.ebuild
52 @@ -0,0 +1,60 @@
53 +# Copyright 1999-2015 Gentoo Foundation
54 +# Distributed under the terms of the GNU General Public License v2
55 +# $Id$
56 +
57 +EAPI=5
58 +
59 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
60 +PYTHON_REQ_USE='sqlite'
61 +
62 +inherit distutils-r1
63 +
64 +DESCRIPTION="Reference implementation of the Jupyter Notebook format"
65 +HOMEPAGE="http://jupyter.org"
66 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
67 +KEYWORDS="~amd64 ~x86"
68 +
69 +LICENSE="BSD"
70 +SLOT="0"
71 +IUSE="doc test"
72 +
73 +RDEPEND="
74 + dev-python/jsonschema[${PYTHON_USEDEP}]
75 + dev-python/ipython_genutils[${PYTHON_USEDEP}]
76 + dev-python/traitlets[${PYTHON_USEDEP}]
77 + dev-python/jupyter_core[${PYTHON_USEDEP}]
78 + "
79 +DEPEND="${RDEPEND}
80 + doc? (
81 + dev-python/sphinx[${PYTHON_USEDEP}]
82 + dev-python/numpydoc[${PYTHON_USEDEP}]
83 + )
84 + test? (
85 + dev-python/nose[${PYTHON_USEDEP}]
86 + dev-python/coverage[${PYTHON_USEDEP}]
87 + )
88 + "
89 +
90 +python_prepare_all() {
91 + # Prevent un-needed download during build
92 + if use doc; then
93 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die
94 + fi
95 +
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_compile_all() {
100 + use doc && emake -C docs html
101 +}
102 +
103 +python_test() {
104 + distutils_install_for_testing
105 + cd "${TEST_DIR}"/lib || die
106 + nosetests --with-coverage --cover-package=nbformat nbformat || die
107 +}
108 +
109 +python_install_all() {
110 + use doc && HTML_DOCS=( docs/_build/html/. )
111 + distutils-r1_python_install_all
112 +}