mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +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.10.0
|
|
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="
|
|
38d194d94ee1d4ea93c791e8c3d41208a8ebf45cd22e87eaeab64158bbc6173bc0c79816ca5658bf5d24657aa64b8a8e9f4225bf5b3ffbbbb8e24d8b8830eb3a py3-fastavro-1.10.0.tar.gz
|
|
"
|