mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
|
|
pkgname=py3-phx-class-registry
|
|
pkgver=5.0.0
|
|
pkgrel=0
|
|
pkgdesc="Registry pattern for Python classes"
|
|
url="https://github.com/todofixthis/class-registry"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="py3-gpep517 py3-poetry-core py3-wheel"
|
|
checkdepends="pytest"
|
|
subpackages="$pkgname-pyc $pkgname-doc"
|
|
source="https://github.com/todofixthis/class-registry/archive/$pkgver/py3-phx-class-registry-$pkgver.tar.gz"
|
|
builddir="$srcdir/class-registry-$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
|
|
|
|
install -Dm755 LICENCE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
a6d8e26a6ba34ef87eb8902b5b8adfc710122bcf3c0e7d1f286cfedc159bddde6bee2aeacc7818b3334fed631e53953cfa5852b4fcfb1592ab43ef3f28e3fc29 py3-phx-class-registry-5.0.0.tar.gz
|
|
"
|