diff options
Diffstat (limited to 'dev-python/html5-parser')
| -rw-r--r-- | dev-python/html5-parser/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/html5-parser/html5-parser-0.4.12.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/html5-parser/Manifest b/dev-python/html5-parser/Manifest index 05fa990b368b..d98780db4d4b 100644 --- a/dev-python/html5-parser/Manifest +++ b/dev-python/html5-parser/Manifest @@ -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 diff --git a/dev-python/html5-parser/html5-parser-0.4.12.ebuild b/dev-python/html5-parser/html5-parser-0.4.12.ebuild new file mode 100644 index 000000000000..acf77124f35d --- /dev/null +++ b/dev-python/html5-parser/html5-parser-0.4.12.ebuild @@ -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_{8,9,10,11,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 +} |
