aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-sphinx-autoapi/APKBUILD
blob: 4034f110e2e8172ce7c505061e93dd28712af90e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-sphinx-autoapi
_pyname=sphinx-autoapi
pkgver=1.8.0
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-unidecode py3-yaml"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# TODO re-add failing tests after fixes from new release
	# See https://github.com/readthedocs/sphinx-autoapi/issues/215
	# and https://github.com/readthedocs/sphinx-autoapi/issues/227
	PYTHONPATH="build:$PYTHONPATH" pytest -v -k 'not test_order_members and not test_manual_directives'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="9a78d67bd926f5aeb64dd6005f5df31dfb38ef360578b473582a5753feba1baecb88d5653b1f1b78476a2ef7b9fdb3d3be174059689ee698039929bac5202af0  sphinx-autoapi-1.8.0.tar.gz"