# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-seqdiag
_pkgname=sphinxcontrib-seqdiag
pkgver=3.0.0
pkgrel=5
pkgdesc="Sphinx seqdiag extension"
url="https://pypi.org/project/sphinxcontrib-seqdiag"
arch="noarch"
license="BSD-2-Clause"
depends="py3-seqdiag py3-sphinx"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-seqdiag"                  # for backwards compatibility
provides="py-sphinxcontrib-seqdiag=$pkgver-r$pkgrel" # for backwards compatibility

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

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

sha512sums="
fd1bcbda3f73eec56314b4ad3054725e9c1b946c6fe3b8b950b5fc3a97ad4d12aa695e5741946cf86bbc8f62f77873400d09afbc568ad593c04fad1810c3e4fe  sphinxcontrib-seqdiag-3.0.0.tar.gz
"
