void-packages/srcpkgs/xdot/template

22 lines
752 B
Bash

# Template file for 'xdot'
pkgname=xdot
version=1.3
revision=1
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=ab32113a45046b8759c0170f81bacaad042349cafa083fc7628d39facc2801eb
do_check() {
# test procedure taken from
# https://github.com/jrfonseca/xdot.py/blob/539361b490f4e6cb773cb0d93dee5fd9fb0aa35f/.github/scripts/test.sh
cd tests
xvfb-run python3 ../test.py *.dot graphs/*.gv
}