pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-html-sanitizer Add py-html-sanitizer-1.3.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/40ef00b470e7
branches:  trunk
changeset: 375522:40ef00b470e7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Feb 13 21:00:03 2018 +0000

description:
Add py-html-sanitizer-1.3.0:

html-sanitizer is a whitelist-based and very opinionated HTML sanitizer
that can be used both for untrusted and trusted sources. It attempts to
clean up the mess made by various rich text editors and or copy-pasting
to make styling of webpages simpler and more consistent. It builds on the
excellent HTML cleaner in lxml to make the result both valid and safe.

It goes further than pure tag filtering by transforming the HTML
fragments to normalize formatting and drop redundant or pointless tags.

diffstat:

 textproc/py-html-sanitizer/DESCR    |   8 ++++++++
 textproc/py-html-sanitizer/Makefile |  19 +++++++++++++++++++
 textproc/py-html-sanitizer/PLIST    |  21 +++++++++++++++++++++
 textproc/py-html-sanitizer/distinfo |   6 ++++++
 4 files changed, 54 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r 3d77de538223 -r 40ef00b470e7 textproc/py-html-sanitizer/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-html-sanitizer/DESCR  Tue Feb 13 21:00:03 2018 +0000
@@ -0,0 +1,8 @@
+html-sanitizer is a whitelist-based and very opinionated HTML sanitizer
+that can be used both for untrusted and trusted sources. It attempts to
+clean up the mess made by various rich text editors and or copy-pasting
+to make styling of webpages simpler and more consistent. It builds on the
+excellent HTML cleaner in lxml to make the result both valid and safe.
+
+It goes further than pure tag filtering by transforming the HTML
+fragments to normalize formatting and drop redundant or pointless tags.
diff -r 3d77de538223 -r 40ef00b470e7 textproc/py-html-sanitizer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-html-sanitizer/Makefile       Tue Feb 13 21:00:03 2018 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2018/02/13 21:00:03 joerg Exp $
+
+DISTNAME=      html-sanitizer-1.3.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc converters python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=h/html-sanitizer/}
+
+MAINTAINER=    joerg%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/matthiask/html-sanitizer/
+COMMENT=       White-list based HTML sanitizer
+LICENSE=       modified-bsd
+
+USE_LANGUAGES=         # none
+
+DEPENDS+=      ${PYPKGPREFIX}-lxml>3:../../textproc/py-lxml
+DEPENDS+=      ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3d77de538223 -r 40ef00b470e7 textproc/py-html-sanitizer/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-html-sanitizer/PLIST  Tue Feb 13 21:00:03 2018 +0000
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1 2018/02/13 21:00:03 joerg Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/html_sanitizer/__init__.py
+${PYSITELIB}/html_sanitizer/__init__.pyc
+${PYSITELIB}/html_sanitizer/__init__.pyo
+${PYSITELIB}/html_sanitizer/__main__.py
+${PYSITELIB}/html_sanitizer/__main__.pyc
+${PYSITELIB}/html_sanitizer/__main__.pyo
+${PYSITELIB}/html_sanitizer/django.py
+${PYSITELIB}/html_sanitizer/django.pyc
+${PYSITELIB}/html_sanitizer/django.pyo
+${PYSITELIB}/html_sanitizer/sanitizer.py
+${PYSITELIB}/html_sanitizer/sanitizer.pyc
+${PYSITELIB}/html_sanitizer/sanitizer.pyo
+${PYSITELIB}/html_sanitizer/tests.py
+${PYSITELIB}/html_sanitizer/tests.pyc
+${PYSITELIB}/html_sanitizer/tests.pyo
diff -r 3d77de538223 -r 40ef00b470e7 textproc/py-html-sanitizer/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-html-sanitizer/distinfo       Tue Feb 13 21:00:03 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/02/13 21:00:03 joerg Exp $
+
+SHA1 (html-sanitizer-1.3.0.tar.gz) = 67ffae88b696cfb623d6778d4ae6bd6ac792d250
+RMD160 (html-sanitizer-1.3.0.tar.gz) = 17dd857a28bea1a1af2540e5c7267810d07dcd51
+SHA512 (html-sanitizer-1.3.0.tar.gz) = cc231f2257300962cda3dea29dc37943bafb72a07b157cc3e47222594e4b01d6d3a5e0688696277d6617a4f160987f5d13220dca1a6c5528d1b472ccdd392483
+Size (html-sanitizer-1.3.0.tar.gz) = 10953 bytes



Home | Main Index | Thread Index | Old Index