aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-beautifulsoup4/APKBUILD
blob: 41e1106b0b6c3ff5052d17eeb402bc96011899d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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"