From patchwork Sun Mar 17 17:08:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 61916 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 C186827BBEA; Sun, 17 Mar 2024 17:10:55 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 CC78227BBEB for ; Sun, 17 Mar 2024 17:10:53 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlu1o-0000Xf-L9; Sun, 17 Mar 2024 13:10:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlu1l-0000P6-Ud for guix-patches@gnu.org; Sun, 17 Mar 2024 13:10:29 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlu1k-0001MM-Vs; Sun, 17 Mar 2024 13:10:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlu2K-0005iB-PT; Sun, 17 Mar 2024 13:11:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60238] [PATCH v3 4/7] gnu: Add python-markdown2. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 17 Mar 2024 17:11:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60238@debbugs.gnu.org Cc: Sharlatan Hellseher , dan , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 60238-submit@debbugs.gnu.org id=B60238.171069541821839 (code B ref 60238); Sun, 17 Mar 2024 17:11:04 +0000 Received: (at 60238) by debbugs.gnu.org; 17 Mar 2024 17:10:18 +0000 Received: from localhost ([127.0.0.1]:58859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1Y-0005g8-J7 for submit@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:18 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:56589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1N-0005e1-82 for 60238@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:08 -0400 Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33ec7e1d542so1888758f8f.1 for <60238@debbugs.gnu.org>; Sun, 17 Mar 2024 10:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710695302; x=1711300102; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d2FSeRf19vx4OtMR5pVTWpfLflFt3DimN2BLP8cmV9A=; b=f2tBLErDsr7dhF1o8FvIvtOv89dWzTy3+YWPFJywGZHXIIk+uEAiTl/wTiZ89GCC/n gn7Qz8jD4GD9efg89cOzTJoLuV5UDF8CA6H38b9+9IH8p8VjFUWl4DxYrWtd2jnMqamR pq89pCmq2jbq69z8xb9Hi0+8fBDsxLNerBiMSGuPKozJwYl7bLkpu2l35WhQEc8hPb+d zoAy6NIShXfcn1kbXw2JEOhhSTMB/WFaolE23Y5Ff6p0zDHD4yWqiLF1jRdncz3gRKj6 00vJodBkuJDukl3vU8zqGBDgUxVFIc41GV6JiYMvR9O5mCbtdUPTiobVh8xpb6e4kem8 fXxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710695302; x=1711300102; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d2FSeRf19vx4OtMR5pVTWpfLflFt3DimN2BLP8cmV9A=; b=n9sRzAJjR1atttSrv4l85LX/1EVA/PTpg3dt/Z8oMf86PKLrQoxeA6XoRSaWQO5m6R u3KLc4RgVwA5erZC7GCdwxsflMVP+IxoCNzPknPZiCp97UGt8+WSW+6Wqc90xJ2K1S5U bUnlBkUrF6c1xhRpfsXIqKouNUV/U+qDwp5tL6HV3bj1G2Oup1aAUJ4m7Vl055zBDHA2 ZLSRK495uVVEbbjXknpwvOXxSpqPtlGiYw0ns05Ks/OMgBCeZdhEnfxCH6kGztBnYCPz oY9DC4+iHjRjdA7gyOyUhbhntTAS3bZeqLhUOs4hoIfFEed9jl6ZKjjgejbvry/diRHr 1jyQ== X-Gm-Message-State: AOJu0YxpWGv+f7ufJ+7iuNEhA3KFa0QeqOCqr6V+RxT80fyLIeE2aFb9 Rt5QOhXruhrG+KFWBqIyXaS2J29/QX9EK6moQtloZqdkBKVXmWd+FoIlYfhiN+Q= X-Google-Smtp-Source: AGHT+IHw438PMi4JA/eIk3bQDP9bif8gchNkCn1OhmY6M5nI9A1UPnahmbJO3dAPG2b+vxpFBbmQLw== X-Received: by 2002:a5d:5404:0:b0:33e:7942:4140 with SMTP id g4-20020a5d5404000000b0033e79424140mr8067264wrv.7.1710695301849; Sun, 17 Mar 2024 10:08:21 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id p10-20020a5d638a000000b0033e206a0a7asm7817968wru.26.2024.03.17.10.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 10:08:21 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 17 Mar 2024 17:08:11 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: dan * gnu/packages/python-xyz.scm (python-markdown2): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7ed8c945be..0e458fdadc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -136,6 +136,7 @@ ;;; Copyright © 2023 Amade Nemes ;;; Copyright © 2023 Bruno Victal ;;; Copyright © 2023 Kaelyn Takata +;;; Copyright © 2023 dan ;;; Copyright © 2023 Dominik Delgado Steuter ;;; Copyright © 2023 Ivan Vilata-i-Balaguer ;;; Copyright © 2023 Ontje Lünsdorf @@ -14245,6 +14246,41 @@ (define-public python-markdown markdown_py is also provided to convert Markdown files to HTML.") (license license:bsd-3))) +(define-public python-markdown2 + (package + (name "python-markdown2") + (version "2.4.13") + (source + (origin + (method git-fetch) ; no tests data in PyPi package + (uri (git-reference + (url "https://github.com/trentm/python-markdown2") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m1wy8i4xmna5b97dvks8cfjmc1wid8pxmd2h82869d0ajva3r6a")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + (invoke "python" "testall.py")))))))) + (native-inputs + (list python-pygments)) + (home-page "https://github.com/trentm/python-markdown2") + (synopsis "Fast and complete Python implementation of Markdown") + (description + "This package provides a fast and complete Python implementation of +Markdown. It was written to closely match the behaviour of the original +Perl-implemented Markdown.pl. It also comes with a number of +extensions (called @code{extras}) for things like syntax coloring, tables, +header-ids.") + (license license:expat))) + (define-public python-mdx-include (package (name "python-mdx-include")