From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wL+EChzMk2HAvAAAgWs5BA (envelope-from ) for ; Tue, 16 Nov 2021 16:19:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oJ9BBhzMk2HYcwAA1q6Kng (envelope-from ) for ; Tue, 16 Nov 2021 15:19:56 +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 5C0D0294AD for ; Tue, 16 Nov 2021 16:19:55 +0100 (CET) Received: from localhost ([::1]:38520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn0FW-0003AT-5S for larch@yhetil.org; Tue, 16 Nov 2021 10:19:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn0Ck-0005To-F4 for guix-patches@gnu.org; Tue, 16 Nov 2021 10:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn0Ck-0002RA-6Z for guix-patches@gnu.org; Tue, 16 Nov 2021 10:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn0Ck-0002mF-2O for guix-patches@gnu.org; Tue, 16 Nov 2021 10:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51895] [PATCH] gnu: Add python-mwparserfromhell Resent-From: Alice BRENON Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Nov 2021 15:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51895 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51895@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163707581210639 (code B ref -1); Tue, 16 Nov 2021 15:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2021 15:16:52 +0000 Received: from localhost ([127.0.0.1]:58890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn0CV-0002lJ-Mk for submit@debbugs.gnu.org; Tue, 16 Nov 2021 10:16:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:59042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn0CT-0002l7-SZ for submit@debbugs.gnu.org; Tue, 16 Nov 2021 10:16:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn0CT-0005Lp-9g for guix-patches@gnu.org; Tue, 16 Nov 2021 10:16:45 -0500 Received: from lxc-smtp2.ens-lyon.fr ([140.77.167.81]:50368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn0CP-0002Pe-Sp for guix-patches@gnu.org; Tue, 16 Nov 2021 10:16:44 -0500 Received: from localhost (localhost [127.0.0.1]) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTP id 0FC1BE54BB for ; Tue, 16 Nov 2021 16:16:38 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at ens-lyon.fr Received: from lxc-smtp2.ens-lyon.fr ([127.0.0.1]) by localhost (lxc-smtp2.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2NDm2_OTYnCO for ; Tue, 16 Nov 2021 16:16:37 +0100 (CET) Received: from localhost (dhcp-58-179.icar.ens-lyon.fr [140.77.58.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTPSA id F1D69E54B2 for ; Tue, 16 Nov 2021 16:16:37 +0100 (CET) Date: Tue, 16 Nov 2021 16:16:36 +0100 From: Alice BRENON Message-ID: <20211116161636.3f805384@ens-lyon.fr> Organization: ENS de Lyon X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/wYeYEredwybDpCMuns9J8tC" Received-SPF: pass client-ip=140.77.167.81; envelope-from=alice.brenon@ens-lyon.fr; helo=lxc-smtp2.ens-lyon.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637075995; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=Az1SwEEW1lOeb6p/5rqVGMz60a9dOjj0ZWqk1DxlgaY=; b=LU1e6f2sH2YEzfCjT6fyELNOEDRq1MrMKgeeAnNAAE7vRIx/kIFJCxe5vVXygL85YKvK9l q57rwYwYPR6ufhCgTQtlFLhx3t1Rn4XFvhT/XPO22lK9F7+RCWcd4vUwJ7NFseSVbSAdPN QT8JMbfG1MUwuo6DRaTJG6C5XqmAChfJOOPGyXn3vhE5JCIvJxT/kbYzmrxUKNMBHKHKwe 13DUdTMO7Uer90Zu31IuR8V7laylyRGkfki0yuFc2RtHCYhG5YpyLBlylBEV2icBmiLAiW qd/oqsLb6m+t93HmI8KaDSqNf6qcVmUOkDwmKuBNzlVDnFtgv6oNURH7RuZaUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637075995; a=rsa-sha256; cv=none; b=oqHJ0ycrr+bCjFlaRgnirokztncwAR+doOpXvmAYptPTIfO2Dxk3knl4JpQ1epAJD6vtdI K+xNFf1XCmfHq2QimW4vvJIN7c+NQ+BaSMPkovcB5+/+HgopX9yG0DU+G7IWlCCFzD6VCN DLV7/L+Lc7VNiGoY/IMGMUy7EZi04pDGwqnATmrIm4naC/jlh4zLW1GVzFaHuDYWZt/xFt +3BIMg+KDSTRW/6O3DSyaC6gtL0YoQN1oxkaxtk3oieQ7E/HLet8H4mRtMVdwH0u1JdI3/ bstXnQ7ZxgzcCpTw/kiZ2jEw92Ke3KVUXi5w4aWe4bzH6C2GNwL/yj/AILcjXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5C0D0294AD X-Spam-Score: -3.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: NSa1XGNJBzJa --MP_/wYeYEredwybDpCMuns9J8tC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list, Here's a patch to add a guix package for the mwparserfromhell python library. Best regards, Alice --MP_/wYeYEredwybDpCMuns9J8tC Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-python-mwparserfromhell.patch =46rom c256fc3aed7fe38acb7d2490f0adc8854ea3d6ed Mon Sep 17 00:00:00 2001 From: Alice BRENON Date: Tue, 16 Nov 2021 16:04:02 +0100 Subject: [PATCH] gnu: Add python-mwparserfromhell. * gnu/packages/python-web.scm (python-mwparserfromhell): New variable. --- gnu/packages/python-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4ddf89c207..785889200f 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -46,6 +46,7 @@ ;;; Copyright =C2=A9 2021 Pradana Aumars ;;; Copyright =C2=A9 2021 Arun Isaac ;;; Copyright =C2=A9 2021 jgart +;;; Copyright =C2=A9 2021 Alice Brenon ;;; ;;; This file is part of GNU Guix. ;;; @@ -6348,3 +6349,32 @@ (define-public python-flask-combo-jsonapi Flask-RESTful to quickly build APIs that fit the complexity of existing real-life projects with legacy data and diverse storage providers.") (license license:expat))) + +(define-public python-mwparserfromhell + (package + (name "python-mwparserfromhell") + (version "0.6.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "mwparserfromhell" version)) + (sha256 + (base32 "0zh9zaqbac18s7mivqk8am9xw97lfkgcj9hhxj0d4208pkqpkmqs"))= )) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-runner" ,python-pytest-runner))) + (home-page "https://github.com/earwig/mwparserfromhell") + (synopsis "Python parser for MediaWiki wikicode") + (description + "The MediaWiki Parser From Hell is a python library package that prov= ides a +parser for MediaWiki. + +It exposes parses as normal string objects with additional methods giving +access to the special Wikicode features it contains (hyperlinks, tags, +templates=E2=80=A6). The parser doesn't interpolate strings at all, it re= mains at a +purely formal level. + +Full documentation may be found at +@uref{https://mwparserfromhell.readthedocs.io, ReadTheDocs}") + (license license:expat))) --=20 2.33.1 --MP_/wYeYEredwybDpCMuns9J8tC--