aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennady Feldman <gena01@gmail.com>2019-02-26 22:40:29 -0500
committerLeo <thinkabit.ukim@gmail.com>2019-06-16 01:15:17 -0300
commitd8ec28e636507f5b3337de284804c6e4a3664a53 (patch)
tree7f6dee858d5e1e711046501b9e50beda99cf6e00
parentb5cf6d2f22f52234c580c2abf5935c783e3cefa2 (diff)
downloadaports-d8ec28e636507f5b3337de284804c6e4a3664a53.tar.bz2
aports-d8ec28e636507f5b3337de284804c6e4a3664a53.tar.xz
testing/py3-confluent-kafka: new aport
Confluent's Apache Kafka Python clien https://github.com/confluentinc/confluent-kafka-python
-rw-r--r--testing/py3-confluent-kafka/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/py3-confluent-kafka/APKBUILD b/testing/py3-confluent-kafka/APKBUILD
new file mode 100644
index 0000000000..78cd283834
--- /dev/null
+++ b/testing/py3-confluent-kafka/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Gennady Feldman <gena01@gmail.com>
+# Contributor: Gennady Feldman <gena01@gmail.com>
+pkgname=py3-confluent-kafka
+_pkgname=confluent-kafka-python
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="Confluent's Apache Kafka Python clien"
+url="https://github.com/confluentinc/confluent-kafka-python"
+arch="all"
+license="Apache-2.0"
+depends="py3-six py3-avro py3-fastavro py3-requests"
+makedepends="py3-setuptools python3-dev librdkafka-dev>=1.0.1"
+checkdepends="py3-pytest"
+source="$pkgname-$pkgver.tar.gz::https://github.com/confluentinc/confluent-kafka-python/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py build_ext --inplace
+ PYTHONPATH=${PWD} python3 -m pytest -v tests
+}
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="9dddf133c6bfa8809cc0af2101efdcbc0185c7c68e7db497f26bd572df522a85097ad77ab368de2b64eaf9a2b7e3d1224d88a061ca59abb6a50d6b70610c67fe py3-confluent-kafka-1.0.1.tar.gz"