1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/py3-anyascii/APKBUILD
Galen Abell 53a8f24528 testing/py3-anyascii: new aport
https://anyascii.com
Unicode to ASCII transliteration
testing/
2023-06-15 12:32:54 +02:00

36 lines
982 B
Text

# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-anyascii
_pyname=anyascii
pkgver=0.3.2
pkgrel=0
pkgdesc="Unicode to ASCII transliteration"
url="https://anyascii.com"
arch="noarch"
license="ISC"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/anyascii/anyascii/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver/impl/python"
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="
2d1231822a051943cc2c958f94c62d2bebe4314d73a598d92cc1c20e8cacd548f7eb2283633ca44359c44d2d2a0d62fad11e2adf1a066f2e100e83294b2e9617 anyascii-0.3.2.tar.gz
"