# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-sphobjinv
_pyname=sphobjinv
pkgver=2.3.1.3
pkgrel=0
pkgdesc="Sphinx objects.inv Inspection/Manipulation Tool"
url="https://github.com/bskinn/sphobjinv"
arch="noarch"
license="MIT"
options="!check" # tests have a lot of unpackaged dependencies
depends="py3-attrs py3-certifi py3-jsonschema py3-fuzzywuzzy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/bskinn/sphobjinv/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

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

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
bfb02f212cc3099ec694b9983d2dce2f38f2e9385821e3ffc077ea6a559844c0c92362effa4da6026cf778a925fc3d5c4ca6ad8d4dc0ccabd3bc64e79dded934  sphobjinv-2.3.1.3.tar.gz
"
