mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 00:34:26 +02:00
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
|
|
# Contributor: Gennady Feldman <gena01@gmail.com>
|
|
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-fastavro
|
|
_pkgname=fastavro
|
|
pkgver=1.11.1
|
|
pkgrel=0
|
|
pkgdesc="Fast Avro for Python"
|
|
# Tests for optional zstd and snappy codecs require
|
|
# unpackaged python modules 'zstandard' and 'python-snappy'
|
|
options="!check"
|
|
url="https://github.com/fastavro/fastavro"
|
|
# Upstream does not test 32 bit systems anymore
|
|
# Issue: https://github.com/fastavro/fastavro/issues/526
|
|
arch="all !x86 !armhf !armv7 !riscv64" # _tz_ tests fail
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools python3-dev cython py3-wheel"
|
|
checkdepends="py3-pytest-xdist py3-numpy"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/fastavro/fastavro/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
build() {
|
|
FASTAVRO_USE_CYTHON=1 \
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$(echo $PWD/build/lib.*)" python3 -m pytest -v tests
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
9baba6ab04aa2eadc436f3d0a079a98d29d6ab7f8ec65f7242d14c229d4e846e29fb12044664cf1982a5d36f5ffed5e059f562c3be1989876839f561f380b39b py3-fastavro-1.11.1.tar.gz
|
|
"
|