[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49123] [PATCH 04/24] gnu: Add python-html-sanitizer.
From: |
slg |
Subject: |
[bug#49123] [PATCH 04/24] gnu: Add python-html-sanitizer. |
Date: |
Sat, 19 Jun 2021 22:07:22 -0300 |
* gnu/packages/python-xyz.scm (python-html-sanitizer): New variable.
---
gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bb263a6f20..54c7d91116 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25990,3 +25990,26 @@ is the cythonized version of
@code{fractions.Fraction}.")
"@code{pathvalidate} is a Python library to sanitize/validate strings
representing paths or filenames.")
(license license:expat)))
+
+(define-public python-html-sanitizer
+ (package
+ (name "python-html-sanitizer")
+ (version "1.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "html-sanitizer" version))
+ (sha256
+ (base32 "1mb9d80mar5y4ariqbmrxn5llcffh5qp3s3ywd05bxgg7jzaxh0k"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-lxml" ,python-lxml)
+ ("python-beautifulsoup4" ,python-beautifulsoup4)))
+ (home-page "https://github.com/matthiask/html-sanitizer")
+ (synopsis "Python library to sanitize HTML")
+ (description "This is a allowlist-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.")
+ (license license:bsd-3)))
--
2.32.0
- [bug#49123] [PATCH 0/24] Add mirage, slg, 2021/06/19
- [bug#49123] [PATCH 01/24] gnu: Add pyotherside., slg, 2021/06/19
- [bug#49123] [PATCH 02/24] gnu: libolm: Add python bindings output., slg, 2021/06/19
- [bug#49123] [PATCH 03/24] gnu: libolm: Update to 3.2.4., slg, 2021/06/19
- [bug#49123] [PATCH 05/24] gnu: Add python-filetype., slg, 2021/06/19
- [bug#49123] [PATCH 06/24] gnu: Add python-logbook., slg, 2021/06/19
- [bug#49123] [PATCH 04/24] gnu: Add python-html-sanitizer.,
slg <=
- [bug#49123] [PATCH 07/24] gnu: python-unpaddedbase64: Update to 2.1.0., slg, 2021/06/19
- [bug#49123] [PATCH 08/24] gnu: python-pycryptodome: Update to 3.10.1., slg, 2021/06/19
- [bug#49123] [PATCH 09/24] gnu: python-hyperframe: Update to 6.0.1., slg, 2021/06/19
- [bug#49123] [PATCH 13/24] gnu: python-socks: Update to 1.2.4., slg, 2021/06/19
- [bug#49123] [PATCH 14/24] gnu: python-aiohttp-socks: Update to 0.6.0., slg, 2021/06/19
- [bug#49123] [PATCH 11/24] gnu: python-h11: Update to 0.12.0., slg, 2021/06/19
- [bug#49123] [PATCH 10/24] gnu: python-h2: Update to 4.0.0., slg, 2021/06/19
- [bug#49123] [PATCH 12/24] gnu: python-future: Update to 0.18.2., slg, 2021/06/19
- [bug#49123] [PATCH 15/24] gnu: Add python-aioresponses., slg, 2021/06/19
- [bug#49123] [PATCH 16/24] gnu: python-hpack: Update to 4.0.0., slg, 2021/06/19