summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-03-20 12:02:22 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-03-20 14:11:36 +0000
commitadad5ef28140cd3344fc4730dfec639036443412 (patch)
tree58d99fe4083d8009ce6da5c0d55d040831c470c1 /gnu
parent5f7071e1a52ca641c8a3e07e8afe92e8af87d602 (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')
-rw-r--r--gnu/packages/python-web.scm38
-rw-r--r--gnu/packages/python-xyz.scm38
2 files changed, 38 insertions, 38 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")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b479830bacf..fb1894b8b87 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18101,44 +18101,6 @@ before they're staged, and can also be used with other version control
systems, as a command line tool, and as a Python library.")
(license license:isc)))
-(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-entrypoints
(package
(name "python-entrypoints")