Subject: [PATCH v2 02/13] gnu: Add go-github-com-chyzer-test

From: Fries <[email-masked]>
Date: Sat, 05 Aug 2023 11:01:29 +0000

* gnu/packages/golang.scm (go-github-com-chyzer-test): New variable.
---
 gnu/packages/golang.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 7005515bb2..171bd3bdb5 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2113,6 +2113,30 @@ (define-public go-github-com-dhowett-go-plist
 types.")
       (license license:giftware))))
 
+(define-public go-github-com-chzyer-test
+  (package
+    (name "go-github-com-chzyer-test")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/chzyer/test")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1axdlcnx2qjsn5wsr2pr1m0w0a8k4nk5kkrngh742fgh81vzzy8s"))))
+    (build-system go-build-system)
+    (arguments
+     (list #:tests? #f ;; Tests relating to a in-memory disk fail due to a Segfault.
+           #:import-path "github.com/chzyer/test"))
+    (propagated-inputs
+     (list go-github-com-chzyer-logex))
+    (home-page "https://github.com/chzyer/test")
+    (synopsis "Testing library for Go")
+    (description "A testing library for Go programs.")
+    (license license:expat)))
+
 (define-public go-github-com-chzyer-logex
   (package
     (name "go-github-com-chzyer-logex")
-- 
2.41.0