# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-podman
pkgver=5.3.0
pkgrel=0
pkgdesc="Python bindings for Podman's RESTful API"
url="https://github.com/containers/podman-py"
license="Apache-2.0"
arch="noarch"
depends="py3-requests py3-urllib3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-requests-mock py3-fixtures"
subpackages="$pkgname-pyc"
source="https://github.com/containers/podman-py/archive/v$pkgver/py3-podman-$pkgver.tar.gz"
builddir="$srcdir/podman-py-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest podman/tests/unit
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/podman-$pkgver-py3-none-any.whl
}

sha512sums="
c880f67fda1d69d376a608fe05a79ce7c6ebf3a58ffb1b8c179685d07ddecc535b373c91f128313d68027bb53cdc6b96042f7f25ef5a274afd6a1cbab4dcd4b7  py3-podman-5.3.0.tar.gz
"
