blob: 369fc87e731eac92c954ffcf2d9ba7c464ebf03c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Gennady Feldman <gena01@gmail.com>
# Contributor: Gennady Feldman <gena01@gmail.com>
pkgname=py3-confluent-kafka
_pkgname=confluent-kafka-python
pkgver=1.3.0
pkgrel=0
pkgdesc="Confluent's Apache Kafka Python clien"
url="https://github.com/confluentinc/confluent-kafka-python"
arch="all !x86 !mips !mips64" # 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="7b58dd5d96ebed5f72e2cea17338fad61154bd1917a9254fb6e617e66bb382824102275459deb9048fbf74927cf79eea6cc8c9a27b6b8c1311c62f23c2e809bb py3-confluent-kafka-1.3.0.tar.gz"
|