# Template file for 'inkscape-silhouette'
pkgname=inkscape-silhouette
version=1.29
revision=1
build_style=gnu-makefile
make_build_target="mo"
make_check_target="test"
hostmakedepends="gettext"
depends="inkscape python3-lxml python3-xmltodict python3-usb python3-libusb1
 python3-numpy python3-matplotlib python3-cssselect wxPython"
checkdepends="python3-pytest umockdev ${depends}"
short_desc="Inkscape extension to drive Silhouette vinyl cutters"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-only"
homepage="https://github.com/fablabnbg/inkscape-silhouette"
changelog="https://github.com/fablabnbg/inkscape-silhouette/releases"
distfiles="https://github.com/fablabnbg/inkscape-silhouette/archive/refs/tags/v${version}.tar.gz"
checksum=2fbdf9c8fedff331a87eb4d774359094d9d8628e9b5b3de6a68f25287b532f35
python_version=3

post_patch() {
	# use python3-usb instead
	rm -r silhouette/pyusb-1.0.2
}
