# Template file for 'python3-lxml'
pkgname=python3-lxml
version=6.0.2
revision=1
build_style=python3-pep517
make_build_args="-C--build-option=--with-cython"
hostmakedepends="python3-Cython python3-setuptools python3-wheel"
makedepends="libxslt-devel python3-devel"
depends="python3"
checkdepends="python3-cssselect python3-BeautifulSoup4 python3-html5lib"
short_desc="Python binding for the libxml2 and libxslt libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, custom:ElementTree"
homepage="https://lxml.de/"
changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
checksum=21f2931fc1aa3c26f2caa40742e9dd491d3c368f1ceec3c341929abff3023535

do_check() {
	make test
}

post_install() {
	vlicense LICENSES.txt
	vlicense doc/licenses/BSD.txt
	vlicense doc/licenses/elementtree.txt
}
