guix_mirror_bot pushed a commit to branch go-team
in repository guix.

commit 71bd4ae9bbad0d5adb53131246674bf9e70181b8
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Wed May 28 00:29:37 2025 +0100

    gnu: Add go-github-com-gomarkdown-markdown.
    
    * gnu/packages/golang-xyz.scm (go-github-com-gomarkdown-markdown): New 
variable.
    
    Change-Id: I6b801b1c863b541379037da8088dc4c5853eae82
---
 gnu/packages/golang-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 301e35a0d5..2251608b1c 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7121,6 +7121,37 @@ All the functionality of the built-in package still 
exists and is unchanged.
 This package contains a series of small enhancements and additions.")
     (license license:bsd-3)))
 
+(define-public go-github-com-gomarkdown-markdown
+  (package
+    (name "go-github-com-gomarkdown-markdown")
+    (version "0.0.0-20250311123330-531bef5e742b")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gomarkdown/markdown";)
+             (commit (go-version->git-ref version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0lw38q8izwflfkqxpr89p0sbriqgbzr240mfzhba2fkk3365y3xs"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/gomarkdown/markdown"
+      ;; One test fails with assertion not equal.
+      #:test-flags #~(list "-skip" "TestRenderCodeBlock")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-examples
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file-recursively "examples")))))))
+    (home-page "https://github.com/gomarkdown/markdown";)
+    (synopsis "Markdown Parser and HTML Renderer for Go")
+    (description
+     "Package markdown implements markdown parser and HTML renderer.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-gomodule-redigo
   (package
     (name "go-github-com-gomodule-redigo")

Reply via email to