pkgname: python-html5lib
pkgver: '1.1'
pkgrel: '1'
pkgdesc: A Python HTML parser/tokenizer based on the WHATWG HTML5 spec
url: 'https://github.com/html5lib'
arch: x86_64
depends: []
makedepends:
- python-setuptools
- python-wheel
- python-six
- python-webencodings
source:
- 'https://files.pythonhosted.org/packages/source/h/html5lib/html5lib-${pkgver}.tar.gz'
- html5lib-1.1-python_3.14_buildfix-1.patch
sha256sums:
- b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f
- SKIP
build: "cd html5lib-${pkgver}\npatch -p1 -i ../html5lib-1.1-python_3.14_buildfix-1.patch\n\nsed -i 's/from pkg_resources import/from packaging.version import parse as/' setup.py\nsed -i 's/import pkg_resources/pkg_resources = None/' setup.py \n\npip3 wheel -w dist \\\n --no-build-isolation \\\n --no-deps $PWD\npip3 install --no-index \\\n --find-links dist \\\n --no-cache-dir \\\n --no-user \\\n --root=${PKGDIR} \\\n html5lib\n\nfind ${PKGDIR} -type d -name vendor -o -name tests |xargs rm -rf \n"
package: |
true