# Contributor: Hugo Rodrigues <hugorodrigues@hugorodrigues.xyz>>
# Maintainer: Hugo Rodrigues <hugorodrigues@hugorodrigues.xyz>>
pkgname=crossplane
pkgver=0.5.8
pkgrel=3
pkgdesc="Quick and reliable way to convert NGINX configurations into JSON and back."
url="https://github.com/nginxinc/crossplane/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://pypi.io/packages/source/c/crossplane/crossplane-$pkgver.tar.gz"
options="!check" # no tests ran

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

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
40354ff7aa3a75093527550971a12e128b9f6e18589d1a0f568c6b276589a3440f4ee3a7f9efc80b301971af87321d2b2a363ced6e10353b9b8ae5add7b7fb60  crossplane-0.5.8.tar.gz
"
