void-packages/srcpkgs/python3-graphviz/template

27 lines
909 B
Bash

# Template file for 'python3-graphviz'
pkgname=python3-graphviz
version=0.20.1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="graphviz python3"
checkdepends="python3-pytest-mock ${depends}"
short_desc="Simple Python3 interface for Graphviz"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/xflr6/graphviz"
changelog="https://github.com/xflr6/graphviz/blob/master/CHANGES.txt"
distfiles="https://github.com/xflr6/graphviz/archive/${version}.tar.gz"
checksum=815346b8c2fcd8ccede29623a67bfc30abdbb75749e96128b9d414573d6d8f04
post_extract() {
# do not run python3-coverage in unittests :/
vsed -i setup.cfg -e 's/--cov --cov-report=term --cov-report=html//'
# don't add pointless dependency on python3-pytest-mock needed on python 3.5
vsed -i setup.cfg -e '/mock_use_standalone_module/d'
}
post_install() {
vlicense LICENSE.txt
}