aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-sphinx-autoapi/APKBUILD
blob: 792581c3e9743878d2d09879fba5316f2b226d6f (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
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-sphinx-autoapi
_pyname=sphinx-autoapi
pkgver=1.8.2
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() {
	PYTHONPATH="build:$PYTHONPATH" pytest -v
}

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

sha512sums="
c53a437e9ad5d5fa6f8297d86f2c6a7a94e2836e6b2500b572dcb22a3fdc9c055d373bff70a4cf56af03b865954eabc698447899845c59dd3644a78baf4739d4  sphinx-autoapi-1.8.2.tar.gz
"