1
0
forked from ports/contrib

20 lines
675 B
Plaintext
Raw Normal View History

2018-08-08 00:12:54 +10:00
# Description: Python HTML/XML Parser.
2020-06-01 15:45:48 +00:00
# URL: https://www.crummy.com/software/BeautifulSoup/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-hatchling python3-tox python3-chardet python3-soupsieve
2018-08-08 00:12:54 +10:00
name=python3-beautifulsoup4
_name=${name#*-}
version=4.12.2
2020-04-12 11:35:13 +10:00
release=1
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
2018-08-08 00:12:54 +10:00
build() {
cd $_name-$version
2018-08-08 00:12:54 +10:00
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
2018-08-08 00:12:54 +10:00
rm -rf $PKG/usr/lib/python3.10/site-packages/$_name-$version.dist-info/licenses/
2018-08-08 00:12:54 +10:00
}