aports/testing/py3-more-properties/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

52 lines
1.3 KiB
Text

# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=py3-more-properties
pkgver=1.1.1
pkgrel=3
pkgdesc="Collection of property variants"
url="https://github.com/madman-bob/python-more-properties"
arch="noarch"
license="MIT"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-pytest-forked
py3-pytest-xdist
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/madman-bob/python-more-properties/archive/refs/tags/$pkgver.tar.gz
root.patch
"
builddir="$srcdir/python-more-properties-$pkgver/"
prepare() {
default_prepare
# fixup location
mv pypi_upload/setup.py .
}
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 -n auto --forked
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
fed395bccc4aacb38c976e6a7d15079e37850d134d8e1864d625aa120c857ace71deaf159b4a2c6d559121fcbff7e9d8be905de0dfa93425bc547f8cd8349fc6 py3-more-properties-1.1.1.tar.gz
99ca365084b2c0f1e0e1bf8b2fea1b8b4a3f86263112b0acc37abb15cefef4c23cd98fb6f13c33fcad603dc9c90c5a04ac8f467eba3b74572d742f15508d2d88 root.patch
"