diff options
Diffstat (limited to 'dev-python/bleach')
-rw-r--r-- | dev-python/bleach/Manifest | 2 | ||||
-rw-r--r-- | dev-python/bleach/bleach-3.2.3.ebuild | 39 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/bleach/Manifest b/dev-python/bleach/Manifest index 288f6a61a274..3e03edd6e025 100644 --- a/dev-python/bleach/Manifest +++ b/dev-python/bleach/Manifest @@ -1,6 +1,8 @@ AUX bleach-3.2.1-py39.patch 1637 BLAKE2B eeb66b15ad738d07db70bbf4599ef393678ca737d122efb7b0c5b5ae6f153b8989b4efc0bf26bdc34c9391af0e81fae5a0f01bc25e2b11db0c5ca76785d6b848 SHA512 5bffd50d9be425a97d6032ad6a55e2d92826ea9e074ea76039a94377c2b4f53599a740cd7fd5c6f90aa2ba87882d46514d014889b0a09f8273fbd31fa98f5b50 DIST bleach-3.2.1.tar.gz 179763 BLAKE2B 5288277ceae1f51fb76c360db72fb646e1d391b3e51f29ba2b25f5dba7704af8ef7cfd2db017237dad42ff4a99e502daa29cdf4edd82952e15842e288c50c0dd SHA512 61710f48f00333b38d251360736e19078063433ca4d7aada210a986f7d79b08c79c64b412686c67f360e4b2e8420c40c4b515eb175ab92bd546f88e2ba0e5835 DIST bleach-3.2.2.tar.gz 180189 BLAKE2B 14b496ced66abb5dadabbfaca7663124deda939c494cfc79803db875bcd4195f3b951962d219d56780de56320948c4d5be294a73a8244d1dfa1ced3fe92862d2 SHA512 20e58b58f6464d819ffbf70d0dbaf4b52eac8894d089291b40c2e27440d5c78577f653020ab6296ca72de27bbad60f58e07ce4bcf140ccb21928b0f600f1c236 +DIST bleach-3.2.3.tar.gz 180414 BLAKE2B 2b46fbedd109649e61b17719cc6fbbaa34e03e878938eee17aa81c66e11887ca9156e5e1b2a99b19f319c99df9fd0ce4d91106acae1638cf2569df0f1c41b788 SHA512 0bee6415ed0d6349311e92b68c4897b830a9ae8c0b1399a35da8ebb76af7b989b67c3e90c24cc34fd8afb903ee5f8de1062a0fa0e34a75328a281cf1706193a0 EBUILD bleach-3.2.1.ebuild 975 BLAKE2B aa9a40dabcee96932573da3b5424cb8cb511ccc0de443f9734e559969b5452e569e229f081cf3e900e12f2bdbca87231d5552b716811cd4b9f6c050d4a3e4943 SHA512 a960fd1ebb953d690180d7b56f533b02c497c1ca3dd7d6370448dcf9ce4e3a04c4d0edc68437ef7b5af12a0c77901f578fee129d7ed5d0476363b663546a4c2c EBUILD bleach-3.2.2.ebuild 984 BLAKE2B beafd4cda8f6417ba3ba8d8acaa6246aecddfc7780b4417fd698e294916651842648cc8638bbedc4198da8ecd0dfcf4564afcc543d8f089db7816acefb26fa68 SHA512 026139c73be84974accf7e226d1b5f18f930e3605b198a4a6078c756bd55e0d63666f312ea9b878412dcd5c1ae9fb892fca510e074ca856960b0c5e9c6830072 +EBUILD bleach-3.2.3.ebuild 984 BLAKE2B beafd4cda8f6417ba3ba8d8acaa6246aecddfc7780b4417fd698e294916651842648cc8638bbedc4198da8ecd0dfcf4564afcc543d8f089db7816acefb26fa68 SHA512 026139c73be84974accf7e226d1b5f18f930e3605b198a4a6078c756bd55e0d63666f312ea9b878412dcd5c1ae9fb892fca510e074ca856960b0c5e9c6830072 MISC metadata.xml 400 BLAKE2B 931735ca08509e3a1f8803181a1eca6be10b654fe37244772eb43b918dcac641c1733e535f2504bfc311644e52506712857ea24bf4784cebcb8b6063194d1388 SHA512 b73e3cd77b2378668b4086395f9a268105d94992f7b9d23ca8cfb834d015cc3ca0ed995acadba9060a5e96d29bae128b850a803a11c4b3d993f518180d9b4b5a diff --git a/dev-python/bleach/bleach-3.2.3.ebuild b/dev-python/bleach/bleach-3.2.3.ebuild new file mode 100644 index 000000000000..02055abb3dd9 --- /dev/null +++ b/dev-python/bleach/bleach-3.2.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7..9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="an easy whitelist-based HTML-sanitizing tool" +HOMEPAGE="https://github.com/mozilla/bleach https://pypi.org/project/bleach/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/html5lib-1.0.1-r1[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/webencodings[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/bleach-3.2.1-py39.patch +) + +src_prepare() { + # unbundle unpatched broken html5lib + rm -r bleach/_vendor || die + sed -i -e 's:bleach\._vendor\.::' \ + bleach/html5lib_shim.py \ + bleach/sanitizer.py \ + tests/test_clean.py || die + + distutils-r1_src_prepare +} |