all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 56740@debbugs.gnu.org
Subject: [bug#56740] [PATCH 5/6] gnu: Add python-mdx-include.
Date: Sun, 24 Jul 2022 16:45:24 +0200	[thread overview]
Message-ID: <ea9ed4d780b813aa7e2073fbedf38e62cd8d2f1b.1658669553.git.h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <cover.1658669552.git.h.goebel@crazy-compilers.com>

* gnu/packages/python-xyz.scm (python-mdx-include): New variable.
---
 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 f4676fb928..77469f1edc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10873,6 +10873,42 @@ extensions, and several HTML output formats.  A command line wrapper
 markdown_py is also provided to convert Markdown files to HTML.")
     (license license:bsd-3)))
 
+(define-public python-mdx-include
+  (package
+    (name "python-mdx-include")
+    (version "1.4.1")
+    (source (origin
+              ;; Use git, as there are some test files missing from the PyPI
+              ;; release, see https://github.com/neurobin/mdx_include/issues/9
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/neurobin/mdx_include")
+                    ;; Releases are not tagged on github, see
+                    ;; https://github.com/neurobin/mdx_include/issues/10
+                    (commit "683e6be7a00a1ef4d673ad0294458fa61bc97286")))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0qpzgln4ybd7pl0m9s19dv60aq9cvwrk7x3yz96kjhcywaa5w386"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'disable-test-requiring-network
+           (lambda _
+             (substitute* "mdx_include/test/test.py"
+               (("(\\s+def )test_(cache|config|default)\\(" _ pre post)
+                (string-append pre "__off__test_" post "("))))))))
+    (propagated-inputs (list python-cyclic python-markdown python-rcslice))
+    (home-page "https://github.com/neurobin/mdx_include")
+    (synopsis "Python Markdown extension to include local or remote files")
+    (description "Include extension for Python Markdown.  It lets you include
+local or remote (downloadable) files into your markdown at arbitrary
+positions.
+
+This project is motivated by markdown-include and provides the same
+functionalities with some extras.")
+    (license license:bsd-3)))
 
 (define-public python-ptyprocess
   (package
-- 
2.30.4





  parent reply	other threads:[~2022-07-24 14:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-24 13:33 [bug#56740] [PATCH 0/6] Some python modules Hartmut Goebel
2022-07-24 14:45 ` [bug#56740] [PATCH 1/6] gnu: Add python-mkdocs-markdownextradata-plugin Hartmut Goebel
2022-07-24 14:45 ` [bug#56740] [PATCH 2/6] gnu: Add python-starlette Hartmut Goebel
2022-07-24 14:45 ` [bug#56740] [PATCH 3/6] gnu: Add python-cyclic Hartmut Goebel
2022-07-24 14:45 ` [bug#56740] [PATCH 4/6] gnu: Add python-rcslice Hartmut Goebel
2022-07-24 14:45 ` Hartmut Goebel [this message]
2022-07-24 14:45 ` [bug#56740] [PATCH 6/6] gnu: Add python-types-orjson Hartmut Goebel
     [not found] ` <handler.56740.B.165866963420116.ack@debbugs.gnu.org>
2022-08-10  8:04   ` [bug#56740] Acknowledgement ([PATCH 0/6] Some python modules) Hartmut Goebel
2022-08-10  8:31 ` bug#56740: [PATCH 0/6] Some python modules Hartmut Goebel

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

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

  git send-email \
    --in-reply-to=ea9ed4d780b813aa7e2073fbedf38e62cd8d2f1b.1658669553.git.h.goebel@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=56740@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.