diff mbox series

[bug#52970] gnu: Add python-markdownify.

Message ID 20220103001835.29311-1-goodoldpaul@autistici.org
State Accepted
Headers show
Series [bug#52970] gnu: Add python-markdownify. | expand

Commit Message

Giacomo Leidi Jan. 3, 2022, 12:18 a.m. UTC
* gnu/packages/markup.scm (python-markdownify): New variable.
---
 gnu/packages/markup.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)


base-commit: 01ec5efff7cf95cae69493bd4ccfdd21a38770ae

Comments

Ludovic Courtès Jan. 8, 2022, 10:07 p.m. UTC | #1
Hi,

Giacomo Leidi <goodoldpaul@autistici.org> skribis:

> * gnu/packages/markup.scm (python-markdownify): New variable.

Applied, thanks!

Ludo’.
diff mbox series

Patch

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index cee3207ee5..5f2f525cd2 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -37,11 +37,13 @@  (define-module (gnu packages markup)
   #:use-module (guix build-system python)
   #:use-module (guix utils)
   #:use-module (gnu packages base)
+  #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages web))
 
 (define-public hoedown
@@ -237,6 +239,29 @@  (define-public perl-text-markdown-discount
 @end example")
     (license license:perl-license)))
 
+(define-public python-markdownify
+  (package
+    (name "python-markdownify")
+    (version "0.10.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "markdownify" version))
+       (sha256
+        (base32
+         "0msvrsgq9jigbgg7r7iq7ql5bgslmbxd8sq0nmpbxrjwqypgs7w2"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list python-pytest))
+    (propagated-inputs
+     (list python-flake8 python-beautifulsoup4 python-six))
+    (home-page
+     "https://github.com/matthewwithanm/python-markdownify")
+    (synopsis "Converts HTML to Markdown")
+    (description "This package provides @code{markdownify} a Python library to
+convert HTML to Markdown.")
+    (license license:expat)))
+
 (define-public cmark
   (package
     (name "cmark")