1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/py3-syrupy/APKBUILD
2023-03-03 20:12:26 +00:00

35 lines
1 KiB
Text

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-syrupy
_pyname=${pkgname/py3-/}
pkgver=4.0.0
pkgrel=0
pkgdesc="The sweeter pytest snapshot plugin"
url="https://tophat.github.io/syrupy"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-pytest py3-colored"
makedepends="py3-poetry-core py3-gpep517 py3-installer"
checkdepends="py3-invoke py3-pytest-benchmark"
source="$pkgname-$pkgver.tar.gz::https://github.com/tophat/syrupy/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$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/$_pyname-$pkgver-py3-none-any.whl
}
sha512sums="
006a28283c1ba148845bc4f447b066112a791adf47d405ce0351a25d2f100c64240719531ec62ed83f6c2a899f8d4ddeec9209fa152a290b6bb4e7b0e6ed1797 py3-syrupy-4.0.0.tar.gz
"