aports/testing/py3-pyvcd/APKBUILD
2024-11-11 21:45:24 +00:00

36 lines
1 KiB
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pyvcd
pkgver=0.4.1
pkgrel=0
pkgdesc="Python package for writing Value Change Dump (VCD) files"
url="https://github.com/westerndigitalcorporation/pyvcd"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-gpep517 py3-installer py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/westerndigitalcorporation/pyvcd/archive/refs/tags/$pkgver/py3-pyvcd-$pkgver.tar.gz"
builddir="$srcdir/pyvcd-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 -m installer .dist/*.whl
test-env/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
3ae5e965bde0fc5e70b8b5f0b5fddd9019f9e545949c987177ff2bc7749df2efaf579990c36c0f8eb550892389995c1e0345b9654061030e3a00700c2f1bd382 py3-pyvcd-0.4.1.tar.gz
"