1 |
commit: d904cf5f4679a3c7b295e948ca4f6665e4c3cc24 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 28 04:26:20 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jun 28 04:34:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d904cf5f |
7 |
|
8 |
dev-python/confluent-kafka: add 1.9.0 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/confluent-kafka/Manifest | 1 + |
13 |
.../confluent-kafka/confluent-kafka-1.9.0.ebuild | 54 ++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/confluent-kafka/Manifest b/dev-python/confluent-kafka/Manifest |
17 |
index 51177ae93..1964de802 100644 |
18 |
--- a/dev-python/confluent-kafka/Manifest |
19 |
+++ b/dev-python/confluent-kafka/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST confluent-kafka-1.8.2.gh.tar.gz 250172 BLAKE2B 9fabaaf2417343ae2743b662c359925487011cee9c63e5f8d07bfa049212e0f9890530072b463fd39fcc991d46e8e2e4ce07d79b8a63b367685c7da9d658291d SHA512 6db66371b7cac822aafeaa4acb491556d9a866f8502d76e2acfe52d18b282caab338cd3f51f84845eab2ec5b2c44ed80426a7ad8afd0314a8a5ddc1a9299d693 |
22 |
+DIST confluent-kafka-1.9.0.gh.tar.gz 260481 BLAKE2B 814a6ce0421c866ed9082aa0cf566b476223453f82d84ee20d58d5fd1045fefbb4b92d6d14a9a8301ea8283c19679236efd237bbe21c57199d0bbfcd6427cd9b SHA512 979878ae3ee61d7fcda67803cc5645cdf28749afe7919c7188e1fba9b34e68ab2950536a4817d47de5492bed751fb2eabcdf30f33adec864250c14cf48512bfe |
23 |
|
24 |
diff --git a/dev-python/confluent-kafka/confluent-kafka-1.9.0.ebuild b/dev-python/confluent-kafka/confluent-kafka-1.9.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..bb04a6a99 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/confluent-kafka/confluent-kafka-1.9.0.ebuild |
29 |
@@ -0,0 +1,54 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+EPYTEST_IGNORE=( tests/integration ) |
36 |
+MYPN="${PN}-python" |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 optfeature |
40 |
+ |
41 |
+DESCRIPTION="Confluent's Kafka Python Client" |
42 |
+HOMEPAGE=" |
43 |
+ https://pypi.org/project/confluent-kafka/ |
44 |
+ https://github.com/confluentinc/confluent-kafka-python |
45 |
+" |
46 |
+SRC_URI="https://github.com/confluentinc/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
47 |
+S="${WORKDIR}/${MYPN}-${PV}" |
48 |
+ |
49 |
+LICENSE="Apache-2.0" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64" |
52 |
+ |
53 |
+RDEPEND="dev-libs/librdkafka" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+BDEPEND=" |
56 |
+ test? ( |
57 |
+ >=dev-python/fastavro-1.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/avro-1.10.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/requests[${PYTHON_USEDEP}] |
60 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
61 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/trivup-0.8.3[${PYTHON_USEDEP}] |
63 |
+ |
64 |
+ dev-python/protobuf-python[${PYTHON_USEDEP}] |
65 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
66 |
+ dev-python/pyflakes[${PYTHON_USEDEP}] |
67 |
+ dev-python/pyrsistent[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests pytest |
72 |
+ |
73 |
+python_install_all() { |
74 |
+ distutils-r1_python_install_all |
75 |
+ rm "${ED}/usr/LICENSE.txt" || die |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ optfeature "avro support" dev-python/fastavro dev-python/avro dev-python/requests |
80 |
+ optfeature "json support" dev-python/jsonschema dev-python/pyrsistent dev-python/requests |
81 |
+ optfeature "protobuf support" dev-python/protobuf-python dev-python/requests |
82 |
+ optfeature "schema-registry support" dev-python/requests |
83 |
+} |