aports/testing/py3-vdf/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

45 lines
1.1 KiB
Text

# Contributor: Joshua Murphy <joshuamurphy@posteo.net>
# Maintainer: Joshua Murphy <joshuamurphy@posteo.net>
pkgname=py3-vdf
pkgver=3.4
pkgrel=1
pkgdesc="Package for working with Valve's text and binary KeyValue format"
url="https://github.com/ValvePython/vdf"
# s390x: broken tests on big endian
arch="noarch !s390x"
license="MIT"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-coverage
py3-mock
py3-nose
py3-pytest
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ValvePython/vdf/archive/v$pkgver.tar.gz"
builddir="$srcdir/vdf-$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="
a22668039d32cb1ef4660ea187a3a144a32e55e5b02c4c567b850d059a47beac111f9164c67bbe3e7b67d15117efe7b207882465b2353a65b7e0f0c107e88d5c py3-vdf-3.4.tar.gz
"