mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 01:05:15 +03:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-html5lib
|
|
_pkgname=html5lib
|
|
pkgver=1.0.1
|
|
pkgrel=4
|
|
pkgdesc="A Python HTML parser"
|
|
options="!check" # 1 test fail TypeError: object of type 'MarkDecorator' has no len()
|
|
url="https://github.com/html5lib/html5lib-python"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-six py3-webencodings"
|
|
checkdepends="pytest pytest-expect py-mock"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-html5lib" # Backwards compatibility
|
|
provides="py-html5lib=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="35939b4450893864da04e735ee5e0addacf1dd34bae6a6909c76572abf6bfded446a78a713dfde91c1485ba45867d7abeb6a45cf0545c16ea968707be7de5dd2 html5lib-1.0.1.tar.gz"
|