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/nbdime/
Date: Mon, 02 Jan 2017 22:09:44
Message-Id: 1483394965.f9daab8b0dff06d345f733e8d5550c7d3853b1c8.jlec@gentoo
1 commit: f9daab8b0dff06d345f733e8d5550c7d3853b1c8
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Jan 2 11:04:12 2017 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 22:09:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9daab8b
7
8 dev-python/nbdime: New package.
9
10 nbdime provides tools for diffing and merging of Jupyter Notebooks.
11 Beside console based diffing and merging tools, web-based diffing
12 and merging tools are provided (requiring npm).
13
14 The ebuild is based on the live ebuild in the science overlay,
15 https://github.com/gentoo-science/sci, which was added by me to
16 the overlay.
17
18 Gentoo-Bug: https://bugs.gentoo.org/604372
19
20 Package-Manager: portage-2.3.0
21 Closes: https://github.com/gentoo/gentoo/pull/3301
22
23 dev-python/nbdime/Manifest | 1 +
24 dev-python/nbdime/metadata.xml | 24 +++++++++++++++
25 dev-python/nbdime/nbdime-0.1.0.ebuild | 55 +++++++++++++++++++++++++++++++++++
26 3 files changed, 80 insertions(+)
27
28 diff --git a/dev-python/nbdime/Manifest b/dev-python/nbdime/Manifest
29 new file mode 100644
30 index 00000000..40dcd99
31 --- /dev/null
32 +++ b/dev-python/nbdime/Manifest
33 @@ -0,0 +1 @@
34 +DIST nbdime-0.1.0.tar.gz 3849944 SHA256 5af53ccf5b265546e61fbc096c4dd8122855b2aa02f8b60a99eeee01a8e33043 SHA512 e110e2e3e8b9bfbaafd26e6558ec863eb0a23f3b7a67482e497c4883fa2151ae058582b975aca90392bd2314f5e32ce3e7316db9c2c37e44c336a9fcf88176c8 WHIRLPOOL 074060d867b259b461514e84b21c0f7eb20ff2f787055e03971fd18d0aa1ba56596b15017354c5becd3f1022b5557ec740d4815d4f820af8b54349273ee8b9a4
35
36 diff --git a/dev-python/nbdime/metadata.xml b/dev-python/nbdime/metadata.xml
37 new file mode 100644
38 index 00000000..b2a229d
39 --- /dev/null
40 +++ b/dev-python/nbdime/metadata.xml
41 @@ -0,0 +1,24 @@
42 +<?xml version="1.0" encoding="UTF-8"?>
43 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
44 +<pkgmetadata>
45 + <maintainer type="person">
46 + <email>marbre@××××××××××××××.de</email>
47 + <name>Marius Brehler</name>
48 + </maintainer>
49 + <maintainer type="project">
50 + <email>sci@g.o</email>
51 + <name>Gentoo Science Project</name>
52 + </maintainer>
53 + <longdescription>
54 + nbdime provides tools for diffing and merging of Jupyter Notebooks.
55 + </longdescription>
56 + <upstream>
57 + <remote-id type="github">jupyter/nbdime</remote-id>
58 + <remote-id type="pypi">nbdime</remote-id>
59 + </upstream>
60 + <use>
61 + <flag name="webtools">
62 + Install web-based diff and merge tools.
63 + </flag>
64 +</use>
65 +</pkgmetadata>
66
67 diff --git a/dev-python/nbdime/nbdime-0.1.0.ebuild b/dev-python/nbdime/nbdime-0.1.0.ebuild
68 new file mode 100644
69 index 00000000..718527d
70 --- /dev/null
71 +++ b/dev-python/nbdime/nbdime-0.1.0.ebuild
72 @@ -0,0 +1,55 @@
73 +# Copyright 1999-2017 Gentoo Foundation
74 +# Distributed under the terms of the GNU General Public License v2
75 +# $Id$
76 +
77 +EAPI=6
78 +
79 +PYTHON_COMPAT=( python3_{4,5} )
80 +
81 +inherit distutils-r1
82 +
83 +DESCRIPTION="Diff and merge of Jupyter Notebooks"
84 +HOMEPAGE="http://jupyter.org"
85 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
86 +KEYWORDS="~amd64"
87 +
88 +LICENSE="BSD"
89 +SLOT="0"
90 +IUSE="test webtools"
91 +
92 +RDEPEND="
93 + dev-python/nbformat[${PYTHON_USEDEP}]
94 + dev-python/six[${PYTHON_USEDEP}]
95 + dev-python/colorama[${PYTHON_USEDEP}]
96 + dev-python/requests[${PYTHON_USEDEP}]
97 + www-servers/tornado[${PYTHON_USEDEP}]
98 + webtools? ( net-libs/nodejs[npm] )
99 + "
100 +DEPEND="${RDEPEND}
101 + test? (
102 + dev-python/pytest[${PYTHON_USEDEP}]
103 + dev-python/pytest-cov[${PYTHON_USEDEP}]
104 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
105 + dev-python/jsonschema[${PYTHON_USEDEP}]
106 + dev-python/mock[${PYTHON_USEDEP}]
107 + dev-python/requests[${PYTHON_USEDEP}]
108 + )
109 + "
110 +# The package recommonmark is required to build the docs, not in portage yet.
111 +# Furthermore, backports.shutil_which is required for python2_7.
112 +
113 +python_configure_all() {
114 + if ! use webtools; then
115 + mydistutilsargs=( --skip-npm )
116 + fi
117 +}
118 +
119 +python_test() {
120 + # user.email and user.name are not configured in the sandbox.
121 + git config --global user.email "you@×××××××.com" || die
122 + git config --global user.name "Your Name" || die
123 +
124 + distutils_install_for_testing
125 +
126 + py.test -l || die
127 +}