mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-12 16:54:18 +02:00
36 lines
960 B
Text
36 lines
960 B
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-visitor
|
|
pkgver=0.1.3
|
|
pkgrel=7
|
|
pkgdesc="Tiny pythonic visitor implementation."
|
|
url="https://github.com/mbr/visitor"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mbr/visitor/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/visitor-$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
414c77df8efcc22df5ee8073e02b8c5c28563954ef9b9a869c4ea3f7f1268a97929c1fe29142ba41e3a5acafea52599f6bf073aacd654643d7d8380cd4f41fbc py3-visitor-0.1.3.tar.gz
|
|
"
|