aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-graphviz/APKBUILD
blob: 3eca5261654987ada46730472fe6b119ab756f3a (plain)
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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-graphviz
pkgver=0.12
pkgrel=1
pkgdesc="Simple interface for Graphviz"
url="https://github.com/xflr6/graphviz"
arch="noarch"
license="MIT"
replaces="py-graphviz" # for backwards compatibility
provides="py-graphviz=$pkgver-r$pkgrel" # for backwards compatibility
depends="graphviz python3"
makedepends="py3-setuptools"
checkdepends="pytest py3-pytest-cov py3-mock py3-pytest-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/xflr6/graphviz/archive/$pkgver.tar.gz"
builddir="$srcdir"/graphviz-$pkgver

build() {
	python3 setup.py --quiet build
}

check() {
	PYTHONPATH=. python3 run-tests.py
}

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

sha512sums="e89af0320e26fd85c51461b5636aaa4e18dec2c8f62933a6aafa54c796258ffc08a6886790e03ed37d7d2897dc8683972b414f2be84468072801548450f524c5  py3-graphviz-0.12.tar.gz"