mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-31 09:08:08 -07:00
dev-python/bleach: Bump to 6.3.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
53
dev-python/bleach/bleach-6.3.0.ebuild
Normal file
53
dev-python/bleach/bleach-6.3.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user