author | Eli Schwartz
<eschwartz@archlinux.org> 2021-03-14 23:07:43 UTC |
committer | Eli Schwartz
<eschwartz@archlinux.org> 2021-03-14 23:07:43 UTC |
parent | 1c5b05c42928e257f8ecb47d3d6ad0bcf89a0dc6 |
PKGBUILD | +4 | -5 |
diff --git a/PKGBUILD b/PKGBUILD index 2e7f14b..b12f917 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,14 +6,14 @@ pkgbase=python-html5lib pkgname=('python2-html5lib' 'python-html5lib') pkgver=1.1 -pkgrel=5 +pkgrel=6 arch=('any') url="https://github.com/html5lib" license=('MIT') _deps=('six' 'webencodings') makedepends=('python-setuptools' 'python2-setuptools' "${_deps[@]/#/python-}" "${_deps[@]/#/python2-}") -_checkdeps=('pytest' 'pytest-expect' 'lxml' 'mock') -checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}") +_checkdeps=('pytest' 'pytest-expect' 'mock') +checkdepends=("${_checkdeps[@]/#/python-}" 'python-lxml' "${_checkdeps[@]/#/python2-}") _test_commit=71eebd59772d1d39aced0c0582ae9c09acf3ce6e source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz" "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch" @@ -43,7 +43,7 @@ check() { cd "${srcdir}"/html5lib-python-${pkgver} py.test - py.test2 + py.test2 -m 'not lxml' } package_python-html5lib() { @@ -60,7 +60,6 @@ package_python-html5lib() { package_python2-html5lib() { pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec" depends=("${_deps[@]/#/python2-}") - optdepends=('python2-lxml: lxml treebuilder') cd "${srcdir}"/html5lib-python-${pkgver} python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build