guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 5ea15e3112c06638067fdd74c5b5825dee4382a1
Author: Arun Isaac <[email protected]>
AuthorDate: Fri Feb 6 00:55:29 2026 +0000

    gnu: Add go-github-com-matryer-moq.
    
    * gnu/packages/golang-check.scm (go-github-com-matryer-moq): New variable.
    
    Change-Id: I6d9ab0d642f9d1db395ea53f6db1d992eb860b71
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-check.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 6e667bdbf8..32678363f4 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -28,6 +28,7 @@
 ;;; Copyright © 2025 Maxim Cournoyer <[email protected]>
 ;;; Copyright © 2025 Patrick Norton <[email protected]>
 ;;; Copyright © 2026 Carlos Durán Domínguez <[email protected]>
+;;; Copyright © 2026 Arun Isaac <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2118,6 +2119,40 @@ output capturing, mocking, and much more.")
 testing capabilities.")
     (license license:expat)))
 
+(define-public go-github-com-matryer-moq
+  (package
+    (name "go-github-com-matryer-moq")
+    (version "0.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/matryer/moq";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0s2ls1wkqapdqw4yjlbwbyp25c3iwi4pp706qlxapds5sx1izq5x"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/matryer/moq"
+      #:test-flags
+      #~(list "-skip"
+              ;; Disable failing tests.
+              (string-join (list "TestGoGenerateVendoredPackages"
+                                 "TestMockGolden/TypeAlias"
+                                 "TestModulesNestedPackage")
+                           "|"))))
+    (propagated-inputs
+     (list go-github-com-pmezard-go-difflib
+           go-golang-org-x-tools))
+    (home-page "https://github.com/matryer/moq";)
+    (synopsis "Interface mocking tool for @command{go generate}")
+    (description
+     "Moq is a tool that generates a struct from any interface.  The struct
+can be used in test code as a mock of the interface.")
+    (license license:expat)))
+
 (define-public go-github-com-maxatome-go-testdeep
   (package
     (name "go-github-com-maxatome-go-testdeep")

Reply via email to