| 1 | # Contributor: Galen Abell <[email protected]> |
| 2 | # Maintainer: Galen Abell <[email protected]> |
| 3 | pkgname=py3-anyascii |
| 4 | _pyname=anyascii |
| 5 | pkgver=0.3.2 |
| 6 | pkgrel=2 |
| 7 | pkgdesc="Unicode to ASCII transliteration" |
| 8 | url="https://anyascii.com" |
| 9 | arch="noarch" |
| 10 | license="ISC" |
| 11 | makedepends="py3-gpep517 py3-flit-core" |
| 12 | checkdepends="py3-pytest" |
| 13 | subpackages="$pkgname-pyc" |
| 14 | source="$_pyname-$pkgver.tar.gz::https://github.com/anyascii/anyascii/archive/refs/tags/$pkgver.tar.gz" |
| 15 | builddir="$srcdir/$_pyname-$pkgver/impl/python" |
| 16 | |
| 17 | build() { |
| 18 | gpep517 build-wheel \ |
| 19 | --wheel-dir .dist \ |
| 20 | --output-fd 3 3>&1 >&2 |
| 21 | } |
| 22 | |
| 23 | check() { |
| 24 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 25 | .testenv/bin/python3 -m installer .dist/*.whl |
| 26 | .testenv/bin/python3 -m pytest |
| 27 | } |
| 28 | |
| 29 | package() { |
| 30 | python3 -m installer -d "$pkgdir" \ |
| 31 | .dist/*.whl |
| 32 | } |
| 33 | |
| 34 | sha512sums=" |
| 35 | 2d1231822a051943cc2c958f94c62d2bebe4314d73a598d92cc1c20e8cacd548f7eb2283633ca44359c44d2d2a0d62fad11e2adf1a066f2e100e83294b2e9617 anyascii-0.3.2.tar.gz |
| 36 | " |