From patchwork Thu Sep 17 07:24:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Hinsen X-Patchwork-Id: 24186 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 3D5F127BBE8; Thu, 17 Sep 2020 08:28:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BE7D727BBE7 for ; Thu, 17 Sep 2020 08:28:37 +0100 (BST) Received: from localhost ([::1]:59912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIoLM-0001gM-VJ for patchwork@mira.cbaines.net; Thu, 17 Sep 2020 03:28:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIoIs-00077C-Te for guix-patches@gnu.org; Thu, 17 Sep 2020 03:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIoIr-00023W-Rf for guix-patches@gnu.org; Thu, 17 Sep 2020 03:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIoIr-0002FJ-Ns for guix-patches@gnu.org; Thu, 17 Sep 2020 03:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43443] [PATCH] gnu: Add python-pypandoc. Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Sep 2020 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43443@debbugs.gnu.org Received: via spool by 43443-submit@debbugs.gnu.org id=B43443.16003275098567 (code B ref 43443); Thu, 17 Sep 2020 07:26:01 +0000 Received: (at 43443) by debbugs.gnu.org; 17 Sep 2020 07:25:09 +0000 Received: from localhost ([127.0.0.1]:37227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIoI0-0002E6-Kz for submit@debbugs.gnu.org; Thu, 17 Sep 2020 03:25:08 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:43371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIoHy-0002DV-GI for 43443@debbugs.gnu.org; Thu, 17 Sep 2020 03:25:07 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4C41A764; Thu, 17 Sep 2020 03:25:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 17 Sep 2020 03:25:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=iOx5abtSl6xn3FquRhxBmmRElB tf/nSJksPVSf5x1mI=; b=IB67lg7Lk8b5f44/AeV1pnplXTzdM0ojqN2uaqf+WN AWVlkLbegx0cmyjo6ju9AfcggVbKZEnWx/JUeRAT3MnBOh2NL7u5WyF3wx6S2G6R 3i7ey4YfuwNyW4xE5FAG3oLggbbSYji523SMGPw6khLn5krx6U0DrWSL6sqDaTGE 2xFOYFoow0Nb665VV4CiGRoDGQ6t5nOTz3rJWfSS/4unygwNMKmGi5P+eATFTT12 /zD+f14iDChWvHqTLrPuLelWJ+JI6AX5UIfO15o9Tx7bhtILAGoEvI2SgiculoIw OWprTRW+X1vAtwSVyypdYPQ6UKTNrt3zsYD0pEC0o6HA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=iOx5ab tSl6xn3FquRhxBmmRElBtf/nSJksPVSf5x1mI=; b=NpRfM+pKgm7pswslBuJ5u0 OMLU6dFO0gEaPGUCHOPH3KTtf0XA+imhZCB7ZsAZTKb/KZsl2FCob7BgX66UBeSe XwurizJyn71WQItNmSXGzi8s3L9JnlU2jArYRbIxa/2iHLMbHXCMCosHakE188SR VxfmcRRvmJuy0oARxPkk1UGoNsbahf4CwhiEEMrq8cP170l2keKKDnTg4Afs/BUG +d/YGFq489dsc4GEFOoBSPxKWY8R8ue30POdMr39gKBDREC7qOwFh5I92gp/9JEw F9f8G3vyawVGlTG1HeTlEhTklZeEbJW+lCL9qfXvAQLbqgSptJPWHHxuOYJUpDjA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtdefgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeffleehuedvud evtdekleelveeifeejtedvgeegveejlefgieejvdfhfeevteejgeenucffohhmrghinhep ghhithhhuhgsrdgtohhmnecukfhppeekiedrvdefkedrudefkedrleegnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvght X-ME-Proxy: Received: from khs-macbook.home (lfbn-idf2-1-907-94.w86-238.abo.wanadoo.fr [86.238.138.94]) by mail.messagingengine.com (Postfix) with ESMTPA id 4E0A0328005A; Thu, 17 Sep 2020 03:24:59 -0400 (EDT) From: Konrad Hinsen In-Reply-To: References: <878sdavxrp.fsf@elephly.net> <875z8dwy00.fsf@elephly.net> Date: Thu, 17 Sep 2020 09:24:57 +0200 Message-ID: MIME-Version: 1.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pypandoc): New variable. --- gnu/packages/python-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 593bb3f468..147c3bccb8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -129,6 +129,7 @@ #:use-module (gnu packages gsasl) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) @@ -21979,3 +21980,45 @@ dates in almost any string formats commonly found on web pages.") (description "Safety checks installed dependencies for known vulnerabilities. By default it uses the open Python vulnerability database Safety DB.") (license license:expat))) + +(define-public python-pypandoc + (package + (name "python-pypandoc") + (version "1.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pypandoc" version)) + (sha256 + (base32 + "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l")))) + (build-system python-build-system) + (inputs + `(("pandoc" ,pandoc) + ("pandoc-citeproc" ,pandoc-citeproc))) + (propagated-inputs + `(("wheel" ,python-wheel))) + (native-inputs + `(("texlive" ,(texlive-union (list texlive-amsfonts + texlive-fonts-ec + texlive-latex-hyperref + texlive-latex-oberdiek + texlive-lm + texlive-xcolor))))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-tests + (lambda _ + ;; Disable test requiring network access + (substitute* "tests.py" + (("test_basic_conversion_from_http_url") + "skip_test_basic_conversion_from_http_url")) + ;; Needed by texlive-union to generate fonts + (setenv "HOME" "/tmp") + #t))))) + (home-page "https://github.com/bebraw/pypandoc") + (synopsis "Python wrapper for pandoc") + (description "The package pypandoc is a thin Python wrapper around +pandoc and pandoc-citeproc.") + (license license:expat)))