aports/testing/py3-quebra-frases/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

39 lines
1,012 B
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-quebra-frases
pkgver=0.3.7
pkgrel=1
pkgdesc="Chunks strings into byte sized pieces"
url="https://github.com/OpenJarbas/quebra_frases"
arch="noarch"
license="Apache-2.0"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/q/quebra_frases/quebra_frases-$pkgver.tar.gz"
builddir="$srcdir/quebra_frases-$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
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
608be3ef5090fb4001913a39f593a98f8da49c0d7c238d62680d0cd03bca0985af08b2bdc78ebc279f4ad5c8de40129dc5e18c75d78d263f21d8cd99c80fa400 quebra_frases-0.3.7.tar.gz
"