1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/py3-confluent-kafka/APKBUILD

33 lines
1.1 KiB
Text

# Maintainer: Gennady Feldman <gena01@gmail.com>
# Contributor: Gennady Feldman <gena01@gmail.com>
pkgname=py3-confluent-kafka
_pkgname=confluent-kafka-python
pkgver=1.8.2
pkgrel=2
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-avro py3-fastavro py3-jsonschema py3-protobuf py3-requests"
makedepends="py3-setuptools python3-dev librdkafka-dev>=1.0.1"
checkdepends="py3-pytest py3-trivup"
options="!check" # missing deps
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=. python3 -m pytest -v tests
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm "$pkgdir"/usr/LICENSE.txt
}
sha512sums="
6db66371b7cac822aafeaa4acb491556d9a866f8502d76e2acfe52d18b282caab338cd3f51f84845eab2ec5b2c44ed80426a7ad8afd0314a8a5ddc1a9299d693 py3-confluent-kafka-1.8.2.tar.gz
"