unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mădălin Ionel Patrașcu" <madalinionel.patrascu@mdc-berlin.de>
To: <58490@debbugs.gnu.org>
Subject: [bug#58490] [PATCH 2/5] gnu: Add python-markdown-it-py. X-Debbugs-Cc: rekado@elephly.net
Date: Thu, 13 Oct 2022 13:40:03 +0200	[thread overview]
Message-ID: <20221013114006.9513-2-madalinionel.patrascu@mdc-berlin.de> (raw)
In-Reply-To: <20221013114006.9513-1-madalinionel.patrascu@mdc-berlin.de>

* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b95d598c07..33b6c62346 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4017,6 +4017,47 @@ (define-public python-virtualenv
      "Virtualenv is a tool to create isolated Python environments.")
     (license license:expat)))
 
+(define-public python-markdown-it-py
+  (package
+    (name "python-markdown-it-py")
+    (version "2.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "markdown-it-py" version))
+              (sha256
+               (base32
+                "1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+      #:tests? #f ;;pypi source does not contains tests
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'build
+           (lambda _
+             (invoke "flit" "build")))
+          (replace 'install
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+              (add-installed-pythonpath inputs outputs)
+              (for-each
+                (lambda (wheel)
+                  (format #t wheel)
+                   (invoke "python" "-m" "pip" "install"
+                           wheel (string-append "--prefix=" #$output)))
+                (find-files "dist" "\\.whl$")))))))
+    (native-inputs (list python-flit))
+    (propagated-inputs
+      (list python-mdurl
+            python-typing-extensions))
+    (home-page "https://github.com/executablebooks/markdown-it-py")
+    (synopsis "Python port of markdown-it")
+    (description
+     "This is a @code{Python} port of the well used @code{markdown-it}, and some
+of its associated plugins.  The driving design philosophy of the port has been
+to change as little of the fundamental code structure (file names, function name,
+etc) as possible.")
+    (license license:expat)))
+
 (define-public python-markupsafe
   (package
     (name "python-markupsafe")
-- 
2.37.3





  reply	other threads:[~2022-10-13 11:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 11:35 [bug#58490] gnu: Add python-mdurl, python-markdown-it-py, python-mdit-py-plugins, python-sphinx-gallery-0.7.0 and python-jupytext MadalinIonel.Patrascu
2022-10-13 11:40 ` [bug#58490] [PATCH 1/5] gnu: Add python-mdurl. X-Debbugs-Cc: rekado@elephly.net Mădălin Ionel Patrașcu
2022-10-13 11:40   ` Mădălin Ionel Patrașcu [this message]
2022-10-13 11:40   ` [bug#58490] [PATCH 3/5] gnu: Add python-mdit-py-plugins. " Mădălin Ionel Patrașcu
2022-10-13 11:40   ` [bug#58490] [PATCH 4/5] gnu: Add python-sphinx-gallery-0.7.0. " Mădălin Ionel Patrașcu
2022-10-13 11:40   ` [bug#58490] [PATCH 5/5] gnu: Add python-jupytext. " Mădălin Ionel Patrașcu
2022-10-27 11:07 ` bug#58490: Add python-jupytext Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221013114006.9513-2-madalinionel.patrascu@mdc-berlin.de \
    --to=madalinionel.patrascu@mdc-berlin.de \
    --cc=58490@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).