diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
commit | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch) | |
tree | 7166d1b58a582290a4ad23ff5882cca911b8035c /dev-python/html5lib | |
parent | a0ce545d52f231499bf9f3644493113d8af58ec9 (diff) |
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'dev-python/html5lib')
-rw-r--r-- | dev-python/html5lib/Manifest | 1 | ||||
-rw-r--r-- | dev-python/html5lib/html5lib-1.1-r2.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/html5lib/Manifest b/dev-python/html5lib/Manifest index 8bf6727df895..2d9f51dfbf3e 100644 --- a/dev-python/html5lib/Manifest +++ b/dev-python/html5lib/Manifest @@ -1,4 +1,5 @@ AUX html5lib-1.1-pytest6.patch 6862 BLAKE2B 9d11a217556f345261fa28e202eb95b5ab89ef2164158fdff7f5c935c50e83a058f2f50d2cabf294685b7ddfb407a2d04cee38a3a5a22a9232c1d635cee651dd SHA512 11ae3fdea1ee64076af500b20d4d993cfcc255924caadbd7d2cf1182961d7bd685de682b5c1c625b36b97a3820b5e9c67b7dcaed306359d8b9f745f710c5996f DIST html5lib-1.1.tar.gz 272215 BLAKE2B 11a4fc3fb84bf8bab4af5da1de30b0892a9eb454505716b3db391187053c9aac159b1c82ae787896592b8fc850363bba9313b9d7fc617150771c3bfa1aeadefb SHA512 af7c29591007fded99be6c38e3d0ae5a4ac32d71d26046a615918ae732cb1c1ecbf754f47ceca1a53726c3843f3ecea7af87a7362281b45ff3af495815818626 EBUILD html5lib-1.1-r1.ebuild 925 BLAKE2B 9b3d49fcdbc97e6f7fc1081bb1732c577428b529cb92b29048b388fe3781143c56e4da741fab3e517735962734b6c58fed86eea1892784a831faeb799bcbae95 SHA512 064e42b1b27163c03b93e17db6c56023af1eb765fdec06d591d1d8300c616f8a7a15b8b40d5b3d5ac399028f3370f7132cc6b22bf002f3eac08e911ea19b7481 +EBUILD html5lib-1.1-r2.ebuild 1027 BLAKE2B e8f564b8da4db88a5dbb753c8751aa6a1cb78bf8a8ad804d299acad35fb471ee6ac6ae63e6d74f57e06abe16b9a55e6ab0ed03b1c81923e23345ac0d03083349 SHA512 87350e1d3615b8970843a943bd88436b1731c908584af4cde924406ede643bbc1b8d092f87ccda92efb9149fabc33a278abdbfc0cbeb332c228686216771a351 MISC metadata.xml 617 BLAKE2B 14ba200d6b6c4198804e057d61319eb9248d7b9712acfed16f92ed24bb620e3021d161f8bfe685e710a85d02acc601bbba9ed8f0a55a160ce62b8a88bb73ba70 SHA512 0dfb83f18fb1fbe8cc5a0a4f12ce7580d9311362ae7ebecfc78e1d04251d977ca8aa75b8e2cae2e53c9487c175afae80cd09f93a4893b4f730b2f786d6fe5a82 diff --git a/dev-python/html5lib/html5lib-1.1-r2.ebuild b/dev-python/html5lib/html5lib-1.1-r2.ebuild new file mode 100644 index 000000000000..494fe520e35f --- /dev/null +++ b/dev-python/html5lib/html5lib-1.1-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="HTML parser based on the HTML5 specification" +HOMEPAGE=" + https://github.com/html5lib/html5lib-python/ + https://html5lib.readthedocs.io/ + https://pypi.org/project/html5lib/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +PATCHES=( + "${FILESDIR}"/${P}-pytest6.patch +) + +RDEPEND=" + >=dev-python/six-1.9[${PYTHON_USEDEP}] + dev-python/webencodings[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-expect[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + sed -e 's:from mock:from unittest.mock:' \ + -i html5lib/tests/test_meta.py || die +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_expect +} |