aports/community/py3-beautifulsoup4/APKBUILD
2023-04-18 20:12:09 +00:00

43 lines
1.1 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-beautifulsoup4
_pkgname=beautifulsoup4
pkgver=4.12.2
pkgrel=1
pkgdesc="A Python HTML/XML parser"
url="https://www.crummy.com/software/BeautifulSoup/index.html"
arch="noarch"
license="MIT"
depends="python3 py3-soupsieve"
makedepends="
py3-gpep517
py3-hatchling
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-beautifulsoup4" # Backwards compatibility
provides="py-beautifulsoup4=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest -s bs4
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/bs4/tests
}
sha512sums="
1dbb620f675bb319ef050ece0f343e80359bdc59cd8b8de19b1851aa5bca1081a7e953e3221ad97142198c17f67384c05b0406af24a123d71398f209fb89db97 beautifulsoup4-4.12.2.tar.gz
"