# Description: Python HTML/XML Parser.
# URL: https://www.crummy.com/software/BeautifulSoup/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-soupsieve python3-tox python3-typing_extensions
name=python3-beautifulsoup4
_name=${name#*-}
version=4.13.4
release=2
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
build() {
cd $_name-$version
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --destdir="$PKG" dist/*.whl
rm -rf "$PKG"/usr/lib/python3.12/site-packages/$_name-$version.dist-info/licenses/
}