guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0be5bb14d6bf359c663078bd637a92d35ba76509
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Oct 18 16:07:39 2025 +0200

    gnu: python-mdx-include: Update to 1.4.2.
    
    * gnu/packages/python-xyz.scm (python-mdx-include): Update to 1.4.2.
    [source]: Fix version configuration.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-backend>: Set it.
    <#:phases>: In phase 'disable-test-requiring-network, allow tests
    cache and default to run with the help of the injection of the
    django-hello gist.  Disable the test non_existing.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: I30adff174442feb57e776458ef3e0780a3dffac4
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 74725e73f4..e4fd7de544 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16848,29 +16848,39 @@ header-ids.")
 (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)
+    (version "1.4.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/neurobin/mdx_include";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "01fk4y7hkl8a06qfd4a258l8rgcx7z7j4dzb80gk9md48l6p516a"))))
+    (build-system pyproject-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 "("))))))))
+     (list
+      #:test-backend #~'unittest
+      #:phases
+      (let* ((django-hello-url "\
+https://gist.github.com/drgarcia1986/3cce1d134c3c3eeb01bd/raw/\
+73951574d6b62a18b4c342235006ff89d299f879/django_hello.py")
+             (django-hello
+              (origin
+                (method url-fetch)
+                (uri django-hello-url)
+                (sha256 (base32 "\
+13bqmfqwypnv3apxs9akpk3fqsk0yzys5slxfllj285npnka550r")))))
+        #~(modify-phases %standard-phases
+            (add-before 'check 'disable-test-requiring-network
+              (lambda _
+                (substitute* "mdx_include/test/test.py"
+                  (("(\\s+def )test_(config|non_existent)\\(" _ pre post)
+                   (string-append pre "__off__test_" post "("))
+                  (((string-join (string-split #$django-hello-url #\.) "\\."))
+                   #+django-hello))))))))
+    (native-inputs (list python-setuptools))
     (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")

Reply via email to