all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Add python-markdown
@ 2016-01-01 23:49 Erik Edrosa
  2016-01-02  5:14 ` Leo Famulari
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Edrosa @ 2016-01-01 23:49 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 83 bytes --]

Hello Guix-devel,

Here is a patch for a pretty popular markdown parser in python.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-markdown.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-python-markdown.patch", Size: 2371 bytes --]

From 4d2637a58d9d7e68b16a9ae74377740f72608f25 Mon Sep 17 00:00:00 2001
From: Erik Edrosa <erik.edrosa@gmail.com>
Date: Fri, 1 Jan 2016 15:28:46 -0500
Subject: [PATCH] gnu: Add python-markdown.

* gnu/packages/python.scm (python-markdown, python2-markdown): New
variables.
---
 gnu/packages/python.scm | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b8afe3c..4ab1eed 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13,7 +13,7 @@
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com>
-;;; Copyright © 2015 Erik Edrosa <erik.edrosa@gmail.com>
+;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
 ;;; Copyright © 2015 Chris Marusich <cmmarusich@gmail.com>
@@ -5145,6 +5145,39 @@ Python.")
 (define-public python2-mistune
   (package-with-python2 python-mistune))
 
+(define-public python-markdown
+  (package
+    (name "python-markdown")
+    (version "2.6.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Markdown" version))
+       (sha256
+        (base32
+         "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+                  (lambda _
+                    (zero? (system* "python" "run-tests.py")))))))
+    (native-inputs
+     `(("python-nose" ,python-nose)
+       ("python-pyyaml" ,python-pyyaml)))
+    (home-page "https://pythonhosted.org/Markdown/")
+    (synopsis "Python implementation of Markdown")
+    (description
+     "This package provides a Python implementation of John Gruber's
+Markdown.  The library features international input, various Markdown
+extensions, and several HTML output formats.  A command line wrapper
+markdown_py is also provided to convert Markdown files to HTML.")
+    (license bsd-3)))
+
+(define-public python2-markdown
+  (package-with-python2 python-markdown))
+
 (define-public python-ptyprocess
   (package
     (name "python-ptyprocess")
-- 
2.6.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add python-markdown
  2016-01-01 23:49 [PATCH] Add python-markdown Erik Edrosa
@ 2016-01-02  5:14 ` Leo Famulari
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2016-01-02  5:14 UTC (permalink / raw)
  To: Erik Edrosa; +Cc: guix-devel

On Fri, Jan 01, 2016 at 06:49:25PM -0500, Erik Edrosa wrote:
> Hello Guix-devel,
> 
> Here is a patch for a pretty popular markdown parser in python.

LGTM, pushed as b989390889.

Thanks!

> From 4d2637a58d9d7e68b16a9ae74377740f72608f25 Mon Sep 17 00:00:00 2001
> From: Erik Edrosa <erik.edrosa@gmail.com>
> Date: Fri, 1 Jan 2016 15:28:46 -0500
> Subject: [PATCH] gnu: Add python-markdown.
> 
> * gnu/packages/python.scm (python-markdown, python2-markdown): New
> variables.
> ---
>  gnu/packages/python.scm | 35 ++++++++++++++++++++++++++++++++++-
>  1 file changed, 34 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index b8afe3c..4ab1eed 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -13,7 +13,7 @@
>  ;;; Copyright ?? 2015 David Thompson <davet@gnu.org>
>  ;;; Copyright ?? 2015 Leo Famulari <leo@famulari.name>
>  ;;; Copyright ?? 2015 Ben Woodcroft <donttrustben@gmail.com>
> -;;; Copyright ?? 2015 Erik Edrosa <erik.edrosa@gmail.com>
> +;;; Copyright ?? 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
>  ;;; Copyright ?? 2015 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright ?? 2015 Kyle Meyer <kyle@kyleam.com>
>  ;;; Copyright ?? 2015 Chris Marusich <cmmarusich@gmail.com>
> @@ -5145,6 +5145,39 @@ Python.")
>  (define-public python2-mistune
>    (package-with-python2 python-mistune))
>  
> +(define-public python-markdown
> +  (package
> +    (name "python-markdown")
> +    (version "2.6.5")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "Markdown" version))
> +       (sha256
> +        (base32
> +         "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (replace 'check
> +                  (lambda _
> +                    (zero? (system* "python" "run-tests.py")))))))
> +    (native-inputs
> +     `(("python-nose" ,python-nose)
> +       ("python-pyyaml" ,python-pyyaml)))
> +    (home-page "https://pythonhosted.org/Markdown/")
> +    (synopsis "Python implementation of Markdown")
> +    (description
> +     "This package provides a Python implementation of John Gruber's
> +Markdown.  The library features international input, various Markdown
> +extensions, and several HTML output formats.  A command line wrapper
> +markdown_py is also provided to convert Markdown files to HTML.")
> +    (license bsd-3)))
> +
> +(define-public python2-markdown
> +  (package-with-python2 python-markdown))
> +
>  (define-public python-ptyprocess
>    (package
>      (name "python-ptyprocess")
> -- 
> 2.6.4
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-02  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-01 23:49 [PATCH] Add python-markdown Erik Edrosa
2016-01-02  5:14 ` Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.