Gentoo Archives: gentoo-commits

From: Erik Mackdanz <stasibear@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cassandra-driver/
Date: Wed, 28 Oct 2015 00:14:31
Message-Id: 1445991244.bc770290a8e03868f489dbcbb6edea1fb64806e1.stasibear@gentoo
1 commit: bc770290a8e03868f489dbcbb6edea1fb64806e1
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 28 00:14:04 2015 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 00:14:04 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc770290
7
8 dev-python/cassandra-driver: new package 2.7.2
9
10 Package-Manager: portage-2.2.23
11
12 dev-python/cassandra-driver/Manifest | 1 +
13 .../cassandra-driver/cassandra-driver-2.7.2.ebuild | 76 ++++++++++++++++++++++
14 dev-python/cassandra-driver/metadata.xml | 27 ++++++++
15 3 files changed, 104 insertions(+)
16
17 diff --git a/dev-python/cassandra-driver/Manifest b/dev-python/cassandra-driver/Manifest
18 new file mode 100644
19 index 0000000..9592b7c
20 --- /dev/null
21 +++ b/dev-python/cassandra-driver/Manifest
22 @@ -0,0 +1 @@
23 +DIST cassandra-driver-2.7.2.tar.gz 413805 SHA256 dcff93964334902c5707a3024b500c063ec254da61adae9ab8b3824d56088cd5 SHA512 7548764f2a315dc6f6d4a00138767e6ba6b453a7d7ff19c0913f8c931ae6cb163092644c2d24b87e9efefcdf8568d7e84dccf9f990ab498f187a1bb0c498f415 WHIRLPOOL 219a4017d0e129d14aa2cf87ac5f4875c671777e8064cbaf240f84b22df171b3be902fabeec8327e4064b6417c8b44d12b4d9d462bc491d71ae6ec3149612898
24
25 diff --git a/dev-python/cassandra-driver/cassandra-driver-2.7.2.ebuild b/dev-python/cassandra-driver/cassandra-driver-2.7.2.ebuild
26 new file mode 100644
27 index 0000000..679696c
28 --- /dev/null
29 +++ b/dev-python/cassandra-driver/cassandra-driver-2.7.2.ebuild
30 @@ -0,0 +1,76 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +PYTHON_COMPAT=( python2_7 python3_4 )
37 +
38 +inherit distutils-r1 eutils vcs-snapshot
39 +
40 +DESCRIPTION="DataStax python driver for Apache Cassandra"
41 +HOMEPAGE="https://github.com/datastax/python-driver https://pypi.python.org/pypi/cassandra-driver/${PV}"
42 +SRC_URI="https://github.com/datastax/python-driver/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +LICENSE="Apache-2.0"
44 +
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="+cython doc +libev +murmur test"
48 +
49 +RDEPEND="
50 + $(python_gen_cond_dep '=dev-python/futures-2.2.0[${PYTHON_USEDEP}]' python2_7)
51 + >=dev-python/six-1.6[${PYTHON_USEDEP}]
52 +"
53 +DEPEND="${RDEPEND}
54 + cython? (
55 + >=dev-python/cython-0.20[${PYTHON_USEDEP}]
56 + )
57 + doc? (
58 + dev-python/sphinx[${PYTHON_USEDEP}]
59 + )
60 + libev? (
61 + dev-libs/libev
62 + )
63 + test? (
64 + dev-python/nose[${PYTHON_USEDEP}]
65 + ~dev-python/mock-1.0.1[${PYTHON_USEDEP}]
66 + dev-python/pytz[${PYTHON_USEDEP}]
67 + dev-python/pyyaml[${PYTHON_USEDEP}]
68 + dev-python/sure[${PYTHON_USEDEP}]
69 + )
70 +"
71 +
72 +python_configure_all() {
73 + mydistutilsargs=( $(usex cython "" --no-cython)
74 + $(usex libev "" --no-libev)
75 + $(usex murmur "" --no-murmur3) )
76 +}
77 +
78 +python_compile_all() {
79 + use doc && esetup.py doc
80 +}
81 +
82 +python_test() {
83 + nosetests -v tests.unit || die "Tests fail with ${EPYTHON}"
84 +}
85 +
86 +python_install_all() {
87 + distutils-r1_python_install_all "${@}"
88 + use doc && dohtml -r docs/_build/${PV}/.
89 +}
90 +
91 +pkg_postinst() {
92 + einfo
93 + einfo "Some behaviors of this driver are enabled at run-time"
94 + einfo "when certain libs are detected. Compression support is"
95 + einfo "enabled if dev-python/lz4 or dev-python/snappy are"
96 + einfo "installed. Also scales (for metrics) and blist (for"
97 + einfo "sorted sets) provide additional features, though there"
98 + einfo "are not packages in the tree yet (install with pip)."
99 + einfo
100 +}
101 +
102 +# TODO
103 +# - dev-python/eventlet and dev-python/gevent appear to be
104 +# optional runtime deps but the docs never explicitly mention them.
105 +# Is it maybe the case that one of the two is required, but only
106 +# if libev is built?
107
108 diff --git a/dev-python/cassandra-driver/metadata.xml b/dev-python/cassandra-driver/metadata.xml
109 new file mode 100644
110 index 0000000..74e61dd
111 --- /dev/null
112 +++ b/dev-python/cassandra-driver/metadata.xml
113 @@ -0,0 +1,27 @@
114 +<?xml version="1.0" encoding="UTF-8"?>
115 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
116 +<pkgmetadata>
117 + <herd>python</herd>
118 + <maintainer>
119 + <email>stasibear@g.o</email>
120 + <name>Erik Mackdanz</name>
121 + </maintainer>
122 + <longdescription>
123 + A modern, feature-rich and highly-tunable Python
124 + client library for Apache Cassandra (1.2+) and
125 + DataStax Enterprise (3.1+) using exclusively
126 + Cassandra's binary protocol and Cassandra Query
127 + Language v3.
128 + </longdescription>
129 + <use>
130 + <flag name="cython">
131 + Optimize core modules and build custom extensions
132 + </flag>
133 + <flag name="libev">
134 + libev event loop integration
135 + </flag>
136 + <flag name="murmur">
137 + Faster hashing for token-aware routing
138 + </flag>
139 + </use>
140 +</pkgmetadata>