# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=py3-minio
pkgver=7.2.13
pkgrel=0
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-argon2-cffi
	py3-certifi
	py3-pycryptodome
	py3-typing-extensions
	py3-urllib3
	"
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"
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="
61989cfb5a0a7b6bbee3246661fdfee9fdd1e37dc22116f14e50b2b09298f3eed683c310a48fa0205e82db6a2ffdb97e90d342d1f855cda4ed732ef8340e2a95  py3-minio-7.2.13.tar.gz
"
