From patchwork Fri May 3 16:42:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 13868 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 E13A616F93; Fri, 3 May 2019 17:45:03 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 372E216F91 for ; Fri, 3 May 2019 17:45:03 +0100 (BST) Received: from localhost ([127.0.0.1]:44416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMbJ0-0005R3-OV for patchwork@mira.cbaines.net; Fri, 03 May 2019 12:45:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMbIH-0004kJ-SM for guix-patches@gnu.org; Fri, 03 May 2019 12:44:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMbIG-00044R-LY for guix-patches@gnu.org; Fri, 03 May 2019 12:44:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMbI9-0003yg-8a for guix-patches@gnu.org; Fri, 03 May 2019 12:44:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMbI9-0007Ho-5y for guix-patches@gnu.org; Fri, 03 May 2019 12:44:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35446] [PATCH v2 07/24] gnu: Add python-html2text, python2-html2text. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 May 2019 16:44:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35446 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35446@debbugs.gnu.org Received: via spool by 35446-submit@debbugs.gnu.org id=B35446.155690184327930 (code B ref 35446); Fri, 03 May 2019 16:44:09 +0000 Received: (at 35446) by debbugs.gnu.org; 3 May 2019 16:44:03 +0000 Received: from localhost ([127.0.0.1]:49494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMbI2-0007GH-Ur for submit@debbugs.gnu.org; Fri, 03 May 2019 12:44:03 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:37784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMbI0-0007Eg-BA for 35446@debbugs.gnu.org; Fri, 03 May 2019 12:44:00 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id DCD6C4DED1 for <35446@debbugs.gnu.org>; Fri, 3 May 2019 18:43:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1556901834; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xaCR07wuL8a8zHu74+9NbBsLJwlsFb7hzRD2yr6E3J0=; b=dP13SsRgndMjLuvkosjA7542ZIE17BvdMMWlS6jvxeeeADFiU1UcCHGGSWXe+I+XfDd7q5 /dahKDEtGneb7OPIXQuOzSgYdzA15nVT6E+MDTKerLqEYmP8U6e5OVHzAX4Gf6X6u+csPV ZZxr0myFn2QruEewvii52d0HxEW0LgXNgaBpprDUon7pHqaFzh1gklH1g48lC8VKDfsRO6 d8h2193rvv4AGZMqq0tinss4YIKMQ9iZwhd4nGQExYKLDjvjtB2L/YOYU4ERdW9++wLhWc S1rkyutY4fU8ZSB+XeZl08SLGahCVb4exDGLilTWgLDPTupM+L0G4cy00CaGEg== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id B9j_lasRn7PS for <35446@debbugs.gnu.org>; Fri, 3 May 2019 18:43:42 +0200 (CEST) From: Brendan Tildesley Date: Sat, 4 May 2019 02:42:15 +1000 Message-Id: <20190503164232.1799-7-mail@brendan.scot> In-Reply-To: <20190503164232.1799-1-mail@brendan.scot> References: <20190503164232.1799-1-mail@brendan.scot> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-html2text, python2-html2text.): New variables. --- gnu/packages/python-web.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 37da0fd669..839d444f7c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -299,6 +299,28 @@ other HTTP libraries.") (define-public python2-httplib2 (package-with-python2 python-httplib2)) +(define-public python-html2text + (package + (name "python-html2text") + (version "2018.1.9") + (source + (origin + (method url-fetch) + (uri (pypi-uri "html2text" version)) + (sha256 + (base32 + "1m6d7ciq30adc3d1n8g6r46072n7q8kdy039pqvnnmp763xi8xb2")))) + (build-system python-build-system) + (home-page "https://pypi.org/project/html2text/") + (synopsis "Convert HTML into plain text") + (description "html2text takes HTML and converts it into plain ASCII text +which is also valid markdown. html2text was originally written by Aaron +Swartz.") + (license license:gpl3+))) + +(define-public python2-html2text + (package-with-python2 python-html2text)) + (define-public python-mechanicalsoup (package (name "python-mechanicalsoup")