mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
https://github.com/confluentinc/confluent-kafka-python/releases/tag/v2.9.0 Closes https://gitlab.alpinelinux.org/alpine/aports/-/issues/17086
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Maintainer: Gennady Feldman <gena01@gmail.com>
|
|
# Contributor: Gennady Feldman <gena01@gmail.com>
|
|
pkgname=py3-confluent-kafka
|
|
_pkgname=confluent-kafka-python
|
|
pkgver=2.9.0
|
|
pkgrel=0
|
|
pkgdesc="Confluent's Apache Kafka Python clien"
|
|
url="https://github.com/confluentinc/confluent-kafka-python"
|
|
# x86, armhf, armv7, riscv64: blocked by py3-fastavro
|
|
# loongarch64: blocked by py3-avro
|
|
arch="all !x86 !armhf !armv7 !loongarch64 !riscv64"
|
|
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 py3-gpep517"
|
|
checkdepends="py3-pytest py3-trivup"
|
|
options="!check" # missing deps
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/confluentinc/confluent-kafka-python/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
66dccc0b2f63fda97c20bb07043abb8b07f8c89e310f3af5593f57b9ad502f11cc374403bbaf9dfa698da17d5738da616b801586611a20a7e5aa9e4cbb9910a4 py3-confluent-kafka-2.9.0.tar.gz
|
|
"
|