aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pydot/APKBUILD
blob: c05dcd147f79a980a4a7b472a73ddb4ae00f8348 (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
# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname=py3-pydot
pkgver=1.4.1
pkgrel=2
pkgdesc="Python interface to Graphviz's Dot language"
url="https://github.com/pydot/pydot"
arch="noarch"
license="MIT"
depends="python3 py3-parsing"
makedepends="py3-setuptools"
checkdepends="py3-chardet graphviz"
source="https://github.com/pydot/pydot/archive/v$pkgver/pydot-v$pkgver.tar.gz"
options="!check" # graphviz unable to parse jpe files
builddir="$srcdir/pydot-$pkgver"

build() {
	python3 setup.py build
}

check() {
	cd test
	PYTHONPATH="$builddir/build/lib" python3 pydot_unittest.py
}

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

sha512sums="b5f16b59908586df61cd415cb1a3e242fb69c39674a82b171862beff1f3727f47cba39bdd806901cb56bc8a6888783a53d112b1b70044e124ea992789d77f938  pydot-v1.4.1.tar.gz"