Skip to content

Commit

Permalink
added python-bleach for user input sanitazing
Browse files Browse the repository at this point in the history
  • Loading branch information
Telos4 committed Mar 14, 2021
1 parent 1a18f2a commit 4b2a0a6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ menu "External python modules"
source "package/python-bcrypt/Config.in"
source "package/python-beautifulsoup4/Config.in"
source "package/python-bitstring/Config.in"
source "package/python-bleach/Config.in"
source "package/python-bleak/Config.in"
source "package/python-blinker/Config.in"
source "package/python-bluezero/Config.in"
Expand Down
9 changes: 9 additions & 0 deletions package/python-bleach/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config BR2_PACKAGE_PYTHON_BLEACH
bool "python-bleach"
select BR2_PACKAGE_PYTHON_PACKAGING # runtime
select BR2_PACKAGE_PYTHON_SIX # runtime
select BR2_PACKAGE_PYTHON_WEBENCODINGS # runtime
help
An easy safelist-based HTML-sanitizing tool.

https://github.com/mozilla/bleach
5 changes: 5 additions & 0 deletions package/python-bleach/python-bleach.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/bleach/json
md5 0a9d302444b252e7adb2fda175be22d6 bleach-3.3.0.tar.gz
sha256 98b3170739e5e83dd9dc19633f074727ad848cbedb6026708c8ac2d3b697a433 bleach-3.3.0.tar.gz
# Locally computed sha256 checksums
sha256 bec2238c149a632b8fb26813f687aceabab80327f3270769c2c16157883d3130 LICENSE
14 changes: 14 additions & 0 deletions package/python-bleach/python-bleach.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-bleach
#
################################################################################

PYTHON_BLEACH_VERSION = 3.3.0
PYTHON_BLEACH_SOURCE = bleach-$(PYTHON_BLEACH_VERSION).tar.gz
PYTHON_BLEACH_SITE = https://files.pythonhosted.org/packages/70/84/2783f734240fab7815a00b419c4281d2d0984971de30b08176aae2acff10
PYTHON_BLEACH_SETUP_TYPE = setuptools
PYTHON_BLEACH_LICENSE = Apache-2.0
PYTHON_BLEACH_LICENSE_FILES = LICENSE

$(eval $(python-package))

0 comments on commit 4b2a0a6

Please sign in to comment.