diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-20 12:02:22 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-20 14:11:36 +0000 |
| commit | adad5ef28140cd3344fc4730dfec639036443412 (patch) | |
| tree | 58d99fe4083d8009ce6da5c0d55d040831c470c1 /gnu/packages/python-web.scm | |
| parent | 5f7071e1a52ca641c8a3e07e8afe92e8af87d602 (diff) | |
gnu: python-bleach: Move to python-web.
* gnu/packages/python-xyz.scm (python-bleach): Move from here ...
* gnu/packages/python-web.scm: ... to here.
Change-Id: Idf243f18f1cf72ae8915804e2261a36ca925a0af
Diffstat (limited to 'gnu/packages/python-web.scm')
| -rw-r--r-- | gnu/packages/python-web.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 9f25c9540e0..7cf307de54c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -469,6 +469,44 @@ and JSON. @end itemize") (license license:expat))) +(define-public python-bleach + (package + (name "python-bleach") + (version "6.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mozilla/bleach") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02abk9ixn010sqpbdsd7nxms0gv4prwv6d3nplb8giq85lpn1kkb")) + (snippet + #~(begin + (use-modules (guix build utils)) + (substitute* (find-files "." "\\.py$") + (("bleach\\._vendor\\.html5lib") "html5lib")) + (delete-file-recursively "bleach/_vendor/html5lib"))))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 448 passed, 1 deselected, 3 xfailed + #:test-flags + #~(list (string-append "--deselect=tests/test_clean.py::" + "test_self_closing_tags_self_close[wbr]")))) + (native-inputs + (list python-pytest + python-setuptools)) + (propagated-inputs + (list python-html5lib + python-tinycss2 + python-webencodings)) + (home-page "https://github.com/mozilla/bleach") + (synopsis "Whitelist-based HTML-sanitizing tool") + (description "Bleach is an easy whitelist-based HTML-sanitizing tool.") + (license license:asl2.0))) + (define-public python-cloudpathlib (package (name "python-cloudpathlib") |
