author | Daniel M. Capella
<polyzen@archlinux.org> 2023-10-21 08:47:03 UTC |
committer | Daniel M. Capella
<polyzen@archlinux.org> 2023-10-21 08:47:03 UTC |
parent | 0d95ed352741c1529e03a8bda9b9781499bf4e95 |
.SRCINFO | +29 | -0 |
PKGBUILD | +7 | -4 |
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..32c0ed5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = python-html5lib + pkgdesc = A Python HTML parser/tokenizer based on the WHATWG HTML5 spec + pkgver = 1.1 + pkgrel = 13 + url = https://github.com/html5lib + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-expect + checkdepends = python-lxml + makedepends = python-setuptools + makedepends = python-six + makedepends = python-webencodings + depends = python-six + depends = python-webencodings + optdepends = python-lxml: lxml treebuilder + optdepends = python-genshi: genshi treewalker + source = python-html5lib-1.1.tar.gz::https://github.com/html5lib/html5lib-python/archive/1.1.tar.gz + source = https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch + source = https://github.com/html5lib/html5lib-tests/archive/71eebd59772d1d39aced0c0582ae9c09acf3ce6e.tar.gz + source = html5lib_pytest74.patch::https://github.com/html5lib/html5lib-python/pull/570/commits/51cd4b9d331da8b167d0d0a77deb62357b42a1b7.patch + source = html5lib-mock-stdlib.patch::https://github.com/html5lib/html5lib-python/commit/5ec6e5e614679ee938545704fad958a3491c678b.patch + sha256sums = 66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894 + sha256sums = 6f37b33667e35ea138279be9842f012792821b1497b81ae4b108a74180cfe249 + sha256sums = c866f5e4ae9ef34313e2b61fcb74849b6f8aef970bf8249956b6a5d142197087 + sha256sums = 12921399944e191a01a93c26f684b780bc17182b8b642f39591446fd52ae5a34 + sha256sums = 084aeb6fe430a82e482bae01e7f962308f77107d97c42316e512efb7045f7030 + +pkgname = python-html5lib diff --git a/PKGBUILD b/PKGBUILD index 0d7744a..b01f4b7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgname=python-html5lib pkgver=1.1 -pkgrel=12 +pkgrel=13 arch=('any') url="https://github.com/html5lib" license=('MIT') @@ -13,7 +13,7 @@ pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" _deps=('six' 'webencodings') depends=("${_deps[@]/#/python-}") makedepends=('python-setuptools' "${_deps[@]/#/python-}") -_checkdeps=('pytest' 'pytest-expect' 'mock') +_checkdeps=('pytest' 'pytest-expect') checkdepends=("${_checkdeps[@]/#/python-}" 'python-lxml') optdepends=('python-lxml: lxml treebuilder' 'python-genshi: genshi treewalker') @@ -21,11 +21,13 @@ _test_commit=71eebd59772d1d39aced0c0582ae9c09acf3ce6e source=("$pkgname-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz" "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch" "https://github.com/html5lib/html5lib-tests/archive/${_test_commit}.tar.gz" - 'html5lib_pytest74.patch::https://github.com/html5lib/html5lib-python/pull/570/commits/51cd4b9d331da8b167d0d0a77deb62357b42a1b7.patch') + 'html5lib_pytest74.patch::https://github.com/html5lib/html5lib-python/pull/570/commits/51cd4b9d331da8b167d0d0a77deb62357b42a1b7.patch' + 'html5lib-mock-stdlib.patch::https://github.com/html5lib/html5lib-python/commit/5ec6e5e614679ee938545704fad958a3491c678b.patch') sha256sums=('66e9e24a53c10c27abb6be8a3cf2cf55824c6ea1cef8570a633cb223ec46e894' '6f37b33667e35ea138279be9842f012792821b1497b81ae4b108a74180cfe249' 'c866f5e4ae9ef34313e2b61fcb74849b6f8aef970bf8249956b6a5d142197087' - '12921399944e191a01a93c26f684b780bc17182b8b642f39591446fd52ae5a34') + '12921399944e191a01a93c26f684b780bc17182b8b642f39591446fd52ae5a34' + '084aeb6fe430a82e482bae01e7f962308f77107d97c42316e512efb7045f7030') prepare() { cd html5lib-python-${pkgver} @@ -34,6 +36,7 @@ prepare() { patch -p1 -i ../2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch patch -p1 -i ../html5lib_pytest74.patch + patch -p1 -i ../html5lib-mock-stdlib.patch rmdir html5lib/tests/testdata ln -sfT ../../../html5lib-tests-${_test_commit} html5lib/tests/testdata