From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EAnsGL1ERWCdKwAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 21:25:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SG7BFL1ERWA3EAAAB5/wlQ (envelope-from ) for ; Sun, 07 Mar 2021 21:25:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D645E18A05 for ; Sun, 7 Mar 2021 22:25:16 +0100 (CET) Received: from localhost ([::1]:38960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJ0tm-00035m-IG for larch@yhetil.org; Sun, 07 Mar 2021 16:25:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJ0ta-00034A-3G for guix-patches@gnu.org; Sun, 07 Mar 2021 16:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJ0tZ-0006S5-S8 for guix-patches@gnu.org; Sun, 07 Mar 2021 16:25:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJ0tZ-0000v6-P8 for guix-patches@gnu.org; Sun, 07 Mar 2021 16:25:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46449] [PATCH] gnu: Add python-mistletoe. References: <20210211213654.117065-1-noisytoot@disroot.org> In-Reply-To: <20210211213654.117065-1-noisytoot@disroot.org> Resent-From: Ron Nazarov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 07 Mar 2021 21:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46449@debbugs.gnu.org Cc: Ron Nazarov Received: via spool by 46449-submit@debbugs.gnu.org id=B46449.16151522673479 (code B ref 46449); Sun, 07 Mar 2021 21:25:01 +0000 Received: (at 46449) by debbugs.gnu.org; 7 Mar 2021 21:24:27 +0000 Received: from localhost ([127.0.0.1]:41640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ0t0-0000u3-Tk for submit@debbugs.gnu.org; Sun, 07 Mar 2021 16:24:27 -0500 Received: from knopi.disroot.org ([178.21.23.139]:55422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJ0sz-0000ts-0W for 46449@debbugs.gnu.org; Sun, 07 Mar 2021 16:24:26 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 903DA50E62; Sun, 7 Mar 2021 22:24:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k07pWpcEBGYa; Sun, 7 Mar 2021 22:24:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1615152262; bh=nLMG7ylBIad4kefVF+nOBK7r2qES3jco3kMGUGZiGlY=; h=From:To:Cc:Subject:Date; b=X7MaXpx0I++VuWvwM+UE5mUtDuawSFgAJF77nJMuQbFpQeSFZQH72uOWGtigIUgWP x8VVBZQM/V3W/uHBejh8DWUrRTqwgAA752F9VTbqLbzmm/kfut3TzwjlqRGYgA5O+P 7noPmJQToZxmFDSiuwb2LLsKChPHO8wIyTDG9n05o/M1H2yI0VJS4kpwfq3zjbxgHZ qmiNnrCu7OzeDW9jtwzjMr7MVkV3El1wRrsn/ihFoIoEaj0ituYh83V4Y98sUgi87y yoX8tFrh57I5CvnAilnUFwhrirv75YnbeQKEIVi2qe1cAqqj+T7ooGKBD6e5+xZEPG 5s7Im0lAarQvw== Date: Sun, 7 Mar 2021 21:21:25 +0000 Message-Id: <20210307212125.241574-1-noisytoot@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Ron Nazarov X-ACL-Warn: , Ron Nazarov via Guix-patches From: Ron Nazarov via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615152317; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=71DZopxLjMN9OjidaEdnZ4gVEQPalrPVd6ARQxgjz0Q=; b=hL4ZCpUF77sMX8M5laskgK+r1UteA2lWrw7wxtGrPepTMu35FVi3MfaYYXr0+UpQQ6HKWK Sb6+cFR5/MHYvaO/monGqRYzG1YJEKpOgWr3KDEoCfisG/DL41euti9s+O2cYZyTTw/DJU 4swKNYhzY958AypAiK7MVKZahGqMxGcNPuK2LkMSZN+UNi36scjH9mLn3189lJOVjX5VMS VLJu9IEpOHIB85jN52FjLHmRQ0JPTLKbkjM3W0Wnufhfvdxlz8FIyhuesXjPEy484HolHR NHhQHXl3mOCX6ot2IK03zlKAefno/0AngMU/ZSKLW575QQMl037x5utqJfsyzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615152317; a=rsa-sha256; cv=none; b=I6dNZnbGcxER+pN/8r51hkPeza5A4ZE45GcmjsyC+D5/OoyUpcq0dqeWcgN0bpVvfA0SL9 +KgottRDN3GSNdKaiZBYceKxJ7M9N3GyZ4AoJdOcZJrFKUYk2sZ/9gtfZy4XZs8k2WYvoX 8+AquMEp8dE0VDhziKSnbvfIilHocZla9wv56mDuIhVHq9wn3q4C2LmZzKZVKIjGuVUCMz coX5LNZcTGZ8PdWgB0KaTptIQ5EIJyVdxt7O1PMqyF9vhIb4YQw0ZZg7G4Z6d8rM38I+20 igH3l+KHR/wQ7DIc/eUmZ/9ohmEMhCWzoNWcrEEFxerk/d6rll94owDnEWgYFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=X7MaXpx0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.38 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=X7MaXpx0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D645E18A05 X-Spam-Score: -2.38 X-Migadu-Scanner: scn1.migadu.com X-TUID: e9AOgZh7DvTK * gnu/packages/markup.scm (python-mistletoe): New variable. --- gnu/packages/markup.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 95a3eb269e..4e0fcdce1c 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 EuAndreh +;;; Copyright © 2021 Noisytoot ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,6 +32,7 @@ #:use-module (guix build-system trivial) #:use-module (guix build-system cmake) #:use-module (guix build-system perl) + #:use-module (guix build-system python) #:use-module (guix utils) #:use-module (gnu packages compression) #:use-module (gnu packages) @@ -300,3 +302,24 @@ and smu is that smu doesn't support reference style links.") SAX-like interface. It is compliant to the CommonMark specification, with a few extensions.") (license expat))) + +(define-public python-mistletoe + (package + (name "python-mistletoe") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mistletoe" version)) + (sha256 + (base32 "18z6hqfnfjqnrcgfgl5pkj9ggf9yx0yyy94azcn1qf7hqn6g3l14")))) + (build-system python-build-system) + (home-page "https://github.com/miyuchina/mistletoe") + (synopsis "Fast, extensible Markdown parser in pure Python") + (description + "The @code{mistletoe} Markdown parser is a CommonMark-compliant Markdown parser +that supports definitions of custom tokens. +Parsing Markdown into an abstract syntax tree also allows @code{mistletoe} +to swap out renderers for different output formats, +without touching any of the core components.") + (license expat))) -- 2.30.1