[PATCH] gnu: Add python-flask-misaka.

DoneSubmitted by jgart.
Details
2 participants
  • jgart
  • Ludovic Courtès
Owner
unassigned
Severity
normal
J
J
jgart wrote on 6 Jul 2021 07:27
(address . guix-patches@gnu.org)
f0d49e6b77b8fd1b1e67a2aa2f45b0f1@dismail.de
Hi Guix,

This is a patch for python-flask-misaka. Tests are enabled and passing.

Thank you!

jgart
J
J
jgart wrote on 6 Jul 2021 07:32
(address . 49429@debbugs.gnu.org)(name . jgart)(address . jgart@dismail.de)
20210706053200.10308-1-jgart@dismail.de
* gnu/packages/python-web.scm (python-flask-misaka): New variable.
---
gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

Toggle diff (39 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 656f310dc1..e0027ce9dc 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1063,6 +1063,32 @@ Origin Resource Sharing}, making cross-origin AJAX possible.")
 into Jinja2 by default.")
     (license license:bsd-3)))
 
+(define-public python-flask-misaka
+  (package
+    (name "python-flask-misaka")
+    (version "1.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "Flask-Misaka" version))
+        (sha256
+          (base32
+            "12gm6hq3lvlj0ddw8p6lk5pky8jk3pw758ihffjl49shnnzc68zl"))))
+    (build-system python-build-system)
+    (native-inputs
+      `(("python-coverage" ,python-coverage)
+        ("python-mock" ,python-mock)))
+    (propagated-inputs
+      `(("python-flask" ,python-flask)
+        ("python-misaka" ,python-misaka)))
+    (home-page
+      "https://github.com/singingwolfboy/flask-misaka/")
+    (synopsis
+      "Flask interface to Misaka, a markdown parsing library")
+    (description
+      "A pleasant interface between the Flask web framework and the Misaka Markdown parser.")
+    (license license:expat)))
+
 (define-public python-flask-session
   (package
     (name "python-flask-session")
-- 
2.31.1
L
L
Ludovic Courtès wrote on 26 Jul 2021 19:40
(name . jgart)(address . jgart@dismail.de)(address . 49429-done@debbugs.gnu.org)
87r1fl6kjx.fsf_-_@gnu.org
Hi,

jgart <jgart@dismail.de> skribis:

Toggle quote (2 lines)
> * gnu/packages/python-web.scm (python-flask-misaka): New variable.

Applied with the minor tweak below, as per:


Thanks!

Ludo’.
Toggle diff (21 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 83ea50d913..b75cb5ddfd 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1086,12 +1086,11 @@ into Jinja2 by default.")
     (propagated-inputs
       `(("python-flask" ,python-flask)
         ("python-misaka" ,python-misaka)))
-    (home-page
-      "https://github.com/singingwolfboy/flask-misaka/")
-    (synopsis
-      "Flask interface to Misaka, a markdown parsing library")
+    (home-page "https://github.com/singingwolfboy/flask-misaka/")
+    (synopsis "Flask interface to Misaka, a Markdown parsing library")
     (description
-      "A pleasant interface between the Flask web framework and the Misaka Markdown parser.")
+      "This package provides an interface between the Flask web framework and
+the Misaka Markdown parser.")
     (license license:expat)))
 
 (define-public python-flask-session
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 49429@debbugs.gnu.org