dev-python/html5-parser: add 0.4.12

Closes: https://bugs.gentoo.org/917554
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Zac Medico
2023-11-19 10:59:16 -08:00
parent 34ed62fce4
commit f7958aa9f7
2 changed files with 48 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST html5-parser-0.4.11.tar.gz 270735 BLAKE2B a2c1037b5bf6dcb8e69f18b3404273993ee325f05a0c5e194ace3f68e0034fa1ac119bb3dde4c4f26dea62928b4dfda9ed1453760a5bb5f8faa9397fb0276a1a SHA512 07123f0851e195e72c16ecdc97336c08278c8cdd10e89251c2ca80d8d90fc63ddd2a13d5a7b2bce430b6124e774fa236788b8eb0d03d6ed4c706d91e6bc4aa4a
DIST html5-parser-0.4.12.tar.gz 270861 BLAKE2B 34cd247004956205c8aa67b6863a16950b28b92274feb4ddf1fe5ab177bd6e58d2835775a6e12cb6ee56a9bfcf3ad40f5c645fc380be1364acb8cfbfd6eabb3e SHA512 5dc45c54c53fc6492b645977940ebaf4bc4fee141767d9d6066ecc1c8547a2343f29c39c65f97d827863c499d48f54fae9309b8b25aa636ae3e4e42e97ec1f17

View File

@@ -0,0 +1,47 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi toolchain-funcs
DESCRIPTION="Fast C based HTML 5 parsing for python"
HOMEPAGE="
https://github.com/kovidgoyal/html5-parser/
https://pypi.org/project/html5-parser/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="
dev-libs/libxml2:=
"
RDEPEND="
${DEPEND}
dev-python/chardet[${PYTHON_USEDEP}]
>=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
"
BDEPEND="
virtual/pkgconfig
test? (
${RDEPEND}
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
)
"
src_configure() {
export PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
}
python_test() {
"${EPYTHON}" run_tests.py || die
}