1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/py3-libzim/APKBUILD

48 lines
1.2 KiB
Text

# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-libzim
pkgver=3.3.0
pkgrel=0
pkgdesc="Python binding for libzim"
url="https://github.com/openzim/python-libzim"
arch="all"
license="GPL-3.0-or-later"
depends="libzim"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
cython
python3-dev
libzim-dev
"
checkdepends="py3-pytest py3-pytest-cov"
source="py3-libzim-$pkgver.tar.gz::https://github.com/openzim/python-libzim/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/python-libzim-$pkgver"
build() {
export DONT_DOWNLOAD_LIBZIM=yes
export USE_SYSTEM_LIBZIM=yes
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# disable one test till cython 3.x will be available
.testenv/bin/python3 -m pytest \
-k "not test_creator_additem"
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
2fdf4e4ffc8399f7a24794f9ed6e58549067243ce9d898a0f742178fa49fb33d5caa7d6e18938bcdcb7522b626cbc46e403122ed0c011686f80eed1e653cb289 py3-libzim-3.3.0.tar.gz
"