# Contributor: Galen Abell # Maintainer: Galen Abell pkgname=py3-sphinx-autoapi _pyname=sphinx-autoapi pkgver=2.1.1 pkgrel=0 pkgdesc="Automatic API documentation for Sphinx" url="https://sphinx-autoapi.readthedocs.io" arch="noarch !x86" # build breaks on x86 license="MIT" depends="python3 py3-astroid py3-jinja2 py3-sphinx py3-anyascii py3-yaml" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-mock py3-pytest py3-beautifulsoup4" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/s/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl # Test requires network access .testenv/bin/python3 -m pytest \ --deselect tests/python/test_pyintegration.py::TestPipeUnionModule::test_integration } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 0825400dc21f54eb8e61feb80801a0387435a80c9118064fed4b4ffe541077f50a60994a66e74ad9f39ad8e368a1a0e0677f0ce2cdac29680b575fec93cf82e7 sphinx-autoapi-2.1.1.tar.gz "