From patchwork Mon Jan 3 00:18:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 35908 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6056D27BBEA; Mon, 3 Jan 2022 00:20:28 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 27F9E27BBE9 for ; Mon, 3 Jan 2022 00:20:28 +0000 (GMT) Received: from localhost ([::1]:33972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4B5P-0004RL-6X for patchwork@mira.cbaines.net; Sun, 02 Jan 2022 19:20:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4B50-0004Qv-HS for guix-patches@gnu.org; Sun, 02 Jan 2022 19:20:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4B50-0000Ip-8P for guix-patches@gnu.org; Sun, 02 Jan 2022 19:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4B4z-0002Nr-U0 for guix-patches@gnu.org; Sun, 02 Jan 2022 19:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52970] [PATCH] gnu: Add python-markdownify. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Jan 2022 00:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52970 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52970@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16411691539088 (code B ref -1); Mon, 03 Jan 2022 00:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2022 00:19:13 +0000 Received: from localhost ([127.0.0.1]:33919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4B4D-0002MW-DF for submit@debbugs.gnu.org; Sun, 02 Jan 2022 19:19:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:35488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4B4B-0002MO-52 for submit@debbugs.gnu.org; Sun, 02 Jan 2022 19:19:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4B49-0004Gd-9Q for guix-patches@gnu.org; Sun, 02 Jan 2022 19:19:09 -0500 Received: from latitanza.investici.org ([82.94.249.234]:28629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4B47-00007G-8Q for guix-patches@gnu.org; Sun, 02 Jan 2022 19:19:08 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4JRxDw0MCszGp4L; Mon, 3 Jan 2022 00:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1641169136; bh=AudKpi5VAyIU7mzt99xobufd1qCDXJYnu+TOlHsqyZA=; h=From:To:Cc:Subject:Date:From; b=e5vt1gBPtT70lzDholdGzvXdmXFtvHVht4DmQ+6M79olUnzVyNTyLT+ChPXNlywQt 05ZCzha7jRNx4qVv0YNx5dIyW1Zab9e3wKjLUgPDa+85xVWQu1Q8XMD2t7IMW9p7Gk j2Mqm26yy98TBXmwEbNGudazmRLOSJoh8qcES1Qg= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4JRxDv6Y0pzGp3m; Mon, 3 Jan 2022 00:18:55 +0000 (UTC) Date: Mon, 3 Jan 2022 01:18:35 +0100 Message-Id: <20220103001835.29311-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=82.94.249.234; envelope-from=goodoldpaul@autistici.org; helo=latitanza.investici.org X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi X-getmail-retrieved-from-mailbox: Patches * gnu/packages/markup.scm (python-markdownify): New variable. --- gnu/packages/markup.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) base-commit: 01ec5efff7cf95cae69493bd4ccfdd21a38770ae diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index cee3207ee5..5f2f525cd2 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -37,11 +37,13 @@ (define-module (gnu packages markup) #:use-module (guix build-system python) #:use-module (guix utils) #:use-module (gnu packages base) + #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages web)) (define-public hoedown @@ -237,6 +239,29 @@ (define-public perl-text-markdown-discount @end example") (license license:perl-license))) +(define-public python-markdownify + (package + (name "python-markdownify") + (version "0.10.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "markdownify" version)) + (sha256 + (base32 + "0msvrsgq9jigbgg7r7iq7ql5bgslmbxd8sq0nmpbxrjwqypgs7w2")))) + (build-system python-build-system) + (native-inputs + (list python-pytest)) + (propagated-inputs + (list python-flake8 python-beautifulsoup4 python-six)) + (home-page + "https://github.com/matthewwithanm/python-markdownify") + (synopsis "Converts HTML to Markdown") + (description "This package provides @code{markdownify} a Python library to +convert HTML to Markdown.") + (license license:expat))) + (define-public cmark (package (name "cmark")