guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-bleach: Don't vendor python-html5lib.


From: guix-commits
Subject: branch master updated: gnu: python-bleach: Don't vendor python-html5lib.
Date: Mon, 08 May 2023 08:47:15 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new e15d2655cb gnu: python-bleach: Don't vendor python-html5lib.
e15d2655cb is described below

commit e15d2655cbdd448d13b31d0f07187a0e3093d009
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 8 15:45:44 2023 +0300

    gnu: python-bleach: Don't vendor python-html5lib.
    
    * gnu/packages/python-xyz.scm (python-bleach)[source]: Add snippet to
    remove vendored library and references to it.
    [propagated-inputs]: Add python-html5lib.
---
 gnu/packages/python-xyz.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index daec72949c..b7d4d9ff2d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14282,9 +14282,15 @@ systems, as a command line tool, and as a Python 
library.")
        (method url-fetch)
        (uri (pypi-uri "bleach" version))
        (sha256
-        (base32 "0p089853pkwzf1j2zjlmw67pwbkk0whpzfx9dbrd56zb8xf2a0qd"))))
+        (base32 "0p089853pkwzf1j2zjlmw67pwbkk0whpzfx9dbrd56zb8xf2a0qd"))
+       (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)
-    (propagated-inputs (list python-tinycss2 python-webencodings))
+    (propagated-inputs (list python-html5lib python-tinycss2 
python-webencodings))
     (native-inputs (list python-pytest))
     (home-page "https://github.com/mozilla/bleach";)
     (synopsis "Whitelist-based HTML-sanitizing tool")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]