mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 18:52:30 +01:00
40 lines
1022 B
Plaintext
40 lines
1022 B
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-simplematch
|
|
pkgver=1.3
|
|
pkgrel=0
|
|
pkgdesc="Minimal, super readable string pattern matching"
|
|
url="https://github.com/tfeldmann/simplematch"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-poetry-core
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tfeldmann/simplematch/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/simplematch-$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="
|
|
6ed313ea3354abe43afb71d256b19fdf80225fc36af837fbaa6653a8d20a007071cfc84640e05db3bf09ba46ed4a6c750e98ec6d1cc01e5ef19d1f21a4b1953c py3-simplematch-1.3.tar.gz
|
|
"
|