From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Edrosa Subject: [PATCH] Add python-markdown Date: Fri, 1 Jan 2016 18:49:25 -0500 Message-ID: <56871085.9080402@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080702080002080305040006" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF9Ro-0006FR-MF for guix-devel@gnu.org; Fri, 01 Jan 2016 18:49:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF9Rn-0000Eg-9y for guix-devel@gnu.org; Fri, 01 Jan 2016 18:49:28 -0500 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:35811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF9Rn-0000Db-42 for guix-devel@gnu.org; Fri, 01 Jan 2016 18:49:27 -0500 Received: by mail-ob0-x229.google.com with SMTP id 18so308126075obc.2 for ; Fri, 01 Jan 2016 15:49:26 -0800 (PST) Received: from ?IPv6:2602:306:c5c9:a3e0:1c05:98f3:1518:27d6? ([2602:306:c5c9:a3e0:1c05:98f3:1518:27d6]) by smtp.googlemail.com with ESMTPSA id dc19sm8408969obb.0.2016.01.01.15.49.25 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Jan 2016 15:49:25 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------080702080002080305040006 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello Guix-devel, Here is a patch for a pretty popular markdown parser in python. --------------080702080002080305040006 Content-Type: text/x-patch; name="0001-gnu-Add-python-markdown.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-gnu-Add-python-markdown.patch" >From 4d2637a58d9d7e68b16a9ae74377740f72608f25 Mon Sep 17 00:00:00 2001 From: Erik Edrosa 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 ;;; Copyright © 2015 Leo Famulari ;;; Copyright © 2015 Ben Woodcroft -;;; Copyright © 2015 Erik Edrosa +;;; Copyright © 2015, 2016 Erik Edrosa ;;; Copyright © 2015 Efraim Flashner ;;; Copyright © 2015 Kyle Meyer ;;; Copyright © 2015 Chris Marusich @@ -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 --------------080702080002080305040006--