# Contributor: Dhruvin Gandhi <contact@dhru.vin>
# Maintainer: Dhruvin Gandhi <contact@dhru.vin>
pkgname=py3-sphinx-autorun
_pyname=sphinx-autorun
pkgver=1.1.1
pkgrel=5
pkgdesc="Sphinx extension to attach the output of runblock directive to the document"
url="https://github.com/WhyNotHugo/sphinx-autorun"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-sphinx"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$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="
cfe99a9cd249d142fa52986964bca7fa392d15036e69f504b3ea0fdabd37a7c43329101df7cb5d02ff614b9da9cbef15a39f519bf416daa0589829fb7b21a482  sphinx-autorun-1.1.1.tar.gz
"
