diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-10-28 07:56:03 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-10-28 07:59:48 +0100 |
| commit | b758fd4e9b42ce4d92d299c6955023bca9907b18 (patch) | |
| tree | 5ad0f35dde29214a6060b77b6e39f98dd2771735 | |
| parent | dd2cb9749f43bd261d6847f00c2c7468ddb78c55 (diff) | |
| download | gentoo-b758fd4e9b42ce4d92d299c6955023bca9907b18.tar.gz gentoo-b758fd4e9b42ce4d92d299c6955023bca9907b18.tar.bz2 gentoo-b758fd4e9b42ce4d92d299c6955023bca9907b18.zip | |
dev-python/bleach: Bump to 6.3.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
| -rw-r--r-- | dev-python/bleach/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/bleach/bleach-6.3.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/bleach/Manifest b/dev-python/bleach/Manifest index 53e84097d5a0..09beae4367fd 100644 --- a/dev-python/bleach/Manifest +++ b/dev-python/bleach/Manifest @@ -1 +1,2 @@ DIST bleach-6.2.0.tar.gz 203083 BLAKE2B bd570cc330d02ce1340f326b480827d6a4f522975562b7e78edd1505ec78bdeba6e9233819fc1703a0ad009b23975032fabbaa8c4c5242fa91a94a4f2de93ff3 SHA512 2a5059076756bfe528221bd719a00b1221ae9e07644b53232b268e078ab0d37fb25f6fdd292d39bcc711dcbe771a21dad6549ec1b27dc7d7de6852f85228c48c +DIST bleach-6.3.0.tar.gz 203533 BLAKE2B b81c1337155f43ed2dcaff0fe91035b65a4d44b3916f53a29353a9fd18d623e9908db7218dc59589a487d978933dd2680c2e82ab78cb14f64c8d674542ecc248 SHA512 8ebf85f78f7daae90db91e54f368fcc36dde8d93f04cbe469e861d76c55c52d147e756a9d0198e01b3cd93aca966fdaf4d5d35bd2ed3c731e772ed67d5d484a3 diff --git a/dev-python/bleach/bleach-6.3.0.ebuild b/dev-python/bleach/bleach-6.3.0.ebuild new file mode 100644 index 000000000000..a7d081bdcaa6 --- /dev/null +++ b/dev-python/bleach/bleach-6.3.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 pypi + +DESCRIPTION="An easy whitelist-based HTML-sanitizing tool" +HOMEPAGE=" + https://github.com/mozilla/bleach/ + https://pypi.org/project/bleach/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/html5lib-1.2_pre20240221[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/bleach-6.0.0-py39.patch +) + +EPYTEST_DESELECT=( + # this package is not really maintained anymore + 'tests/test_parse_shim.py::test_urlparse[\t :foo.com \n-expected8]' + 'tests/test_parse_shim.py::test_urlparse[ foo.com -expected9]' +) + +src_prepare() { + # unbundle unpatched broken html5lib + rm -r bleach/_vendor || die + sed -i -e 's:bleach\._vendor\.parse:urllib.parse:' \ + bleach/parse_shim.py || die + sed -i -e 's:bleach\._vendor\.::' \ + bleach/html5lib_shim.py \ + bleach/sanitizer.py \ + tests/test_clean.py || die + # indirect html5lib deps + sed -i -e '/webencodings/d' setup.py || die + rm bleach/six_shim.py || die + + distutils-r1_src_prepare +} |
