# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-beautifulsoup4 _pkgname=beautifulsoup4 pkgver=4.9.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 fix-tests-with-syntax-error.patch " builddir="$srcdir/$_pkgname-$pkgver" replaces="py-beautifulsoup4" # Backwards compatibility provides="py-beautifulsoup4=$pkgver-r$pkgrel" # Backwards compatibility case "$CARCH" in mips*) options="!check" ;; esac build() { 2to3 -w --no-diff bs4 python3 setup.py build } check() { python3 -m unittest discover -s bs4 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="8c8d3c23f9e76955e465c6d343addb5165480f59d785755f6550aa3e77e8efe0c3dd4a2f310d485162dc046b05f797a8a6aee96a515d59659c820993e0ee37d7 beautifulsoup4-4.9.0.tar.gz a5274b512daf2a7297073553a054a49bb4d1a2f96137cdde108ce2235e74a8c0d0418bb6597088519972864336d1ed2a63a8dada73b53a50bdc7f72b762fe19d fix-tests-with-syntax-error.patch"