# Template file for 'python3-lxml'
pkgname=python3-lxml
version=6.1.1
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=624d1f5a50862c1bd5280f6997898c5a334e26d3a58bc2bbfec1efd8f98135fa

do_check() {
	make test
}

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