# Maintainer: Gennady Feldman # Contributor: Gennady Feldman pkgname=py3-confluent-kafka _pkgname=confluent-kafka-python pkgver=1.2.0 pkgrel=1 pkgdesc="Confluent's Apache Kafka Python clien" url="https://github.com/confluentinc/confluent-kafka-python" arch="all !x86" # Restricted by py3-fastavro 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="b8bfd9b2c18e4108087f140d4c2f938ada9ce7bfbffbfe2731c47bb6d0d41fbb2d5958d4c4a4cd683f254c7526a17bc5a2c9819608b89cdb179cfc3f1278befd py3-confluent-kafka-1.2.0.tar.gz"