void-packages/srcpkgs/xdot/template

23 lines
779 B
Bash

# Template file for 'xdot'
pkgname=xdot
version=1.2
revision=2
wrksrc="xdot.py-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="graphviz gtk+3 python3-gobject python3-numpy"
checkdepends="$depends xvfb-run"
short_desc="Interactive viewer for Graphviz dot files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="https://github.com/jrfonseca/xdot.py"
distfiles="https://github.com/jrfonseca/xdot.py/archive/${version}.tar.gz"
checksum=28958ffd791d2922c5f95da0c55a536aed67809b7c88eeb61881453b1cac9faa
do_check() {
# test procedure taken from
# https://github.com/jrfonseca/xdot.py/blob/539361b490f4e6cb773cb0d93dee5fd9fb0aa35f/.github/scripts/test.sh
cd tests
xvfb-run python ../test.py *.dot graphs/*.gv
}