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

39 lines
1.2 KiB
Plaintext

# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=py3-minio
pkgver=7.2.0
pkgrel=1
pkgdesc="MinIO client SDK for Python"
url="https://docs.min.io/docs/python-client-quickstart-guide.html"
arch="noarch"
license="Apache-2.0"
depends="py3-certifi py3-urllib3 py3-argon2-cffi py3-pycryptodome"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/minio/minio-py/archive/$pkgver/py3-minio-$pkgver.tar.gz
assertEquals.patch
"
builddir="$srcdir/minio-py-$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="
13d6771043538a5eb4108e693e8135ecaae0aea23492fab735b0de921ac575528a72520356281da0bbaf0b56cfef0026d7d51b64ad30881d8cdb67f9723be424 py3-minio-7.2.0.tar.gz
31b52c6250fa31347aeae234e62978312163f8c5a7b407521000c966a908260b3578108473f26170238b8fd0d88690df7ed861012933dc96f0948d9d16899298 assertEquals.patch
"