# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-beautifulsoup4 _pkgname=beautifulsoup4 pkgver=4.8.0 pkgrel=0 pkgdesc="A Python HTML/XML parser" url="http://www.crummy.com/software/BeautifulSoup/index.html" arch="noarch" license="MIT" depends="python3 py3-soupsieve" makedepends="py3-setuptools" 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() { 2to3 -w bs4 python3 setup.py build } check() { python3 -m unittest discover -s bs4 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="00e157f8031dbb0e30e49158ca30f9e9207647dd3355edf23c2906b9d0c8b93250669edf5b20372e62546501a0cd2d7e87b793faf30bc122b5544f9358c1a4db beautifulsoup4-4.8.0.tar.gz"