From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muriithi Frederick Muriuki <fredmanglis@gmail.com> Subject: [PATCH 10/20] gnu: Add python-misaka Date: Fri, 14 Apr 2017 13:13:10 +0300 Message-ID: <20170414101320.11755-10-fredmanglis@gmail.com> References: <20170414101320.11755-1-fredmanglis@gmail.com> Return-path: <guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:44176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <fredmanglis@gmail.com>) id 1cyyEB-0000vE-0G for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <fredmanglis@gmail.com>) id 1cyyE9-0005ST-RW for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:18 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:36131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <fredmanglis@gmail.com>) id 1cyyE9-0005Ry-M2 for guix-devel@gnu.org; Fri, 14 Apr 2017 06:13:17 -0400 Received: by mail-wr0-x242.google.com with SMTP id o21so11971137wrb.3 for <guix-devel@gnu.org>; Fri, 14 Apr 2017 03:13:17 -0700 (PDT) In-Reply-To: <20170414101320.11755-1-fredmanglis@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org> To: guix-devel@gnu.org Cc: pjotr2017@thebird.nl * gnu/packages/python.scm (python-misaka): New variable. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 148ed74..0e3860f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14208,3 +14208,39 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}") (define-public python2-couleur (package-with-python2 python-couleur)) + +(define-public python-misaka + (package + (name "python-misaka") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "misaka" version)) + (sha256 + (base32 + "011nyw2xnwp9xzqzrp6qmqvfc5xg5165ryd9gmmh8h5q38wg2vik")))) + (build-system python-build-system) + (propagated-inputs + `(("python-cffi" ,python-cffi))) + (arguments + `(;; Line 37 of setup.py calls self.run_command('develop') + ;; in the 'check' phase. This command seems to be trying + ;; to write to + ;; /gnu/store/3aw9x...-python-3.5.3/lib/python3.5/site-packages/ + ;; which is not the appropriate output directory, and unlike the + ;; install command, passing the --prefix or --install-dir + ;; arguments to the test command fails. + ;; This seems to be required by easy_install, to run the tests + #:tests? #f)) + (home-page "https://github.com/FSX/misaka") + (synopsis + "Misaka is a CFFI binding for Hoedown, a markdown parsing library") + (description + "Misaka is a CFFI-based binding for Hoedown, a fast markdown processing library +written in C. It features a fast HTML renderer and functionality to make custom renderers +(e.g. man pages or LaTeX).") + (license license:expat))) + +(define-public python2-misaka + (package-with-python2 python-misaka)) -- 2.10.2