diff options
| author | Arun Isaac <arunisaac@systemreboot.net> | 2026-02-06 00:55:29 +0000 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2026-02-06 14:25:50 -0600 |
| commit | a045f91c9e545cb7de7521da458a9898c62792b2 (patch) | |
| tree | e31b60b868b692a137989dfc98725f8360975e26 /gnu | |
| parent | 2d33ec5eaf7bc9dbb3a93347b49a92173c542872 (diff) | |
gnu: Add go-github-com-matryer-moq.
* gnu/packages/golang-check.scm (go-github-com-matryer-moq): New variable.
Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-check.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index b77ef6efdc..31973f5dd6 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -27,6 +27,7 @@ ;;; Copyright © 2024 Roman Scherer <roman@burningswell.com> ;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop> ;;; Copyright © 2025 Patrick Norton <patrick.147.norton@gmail.com> +;;; Copyright © 2026 Arun Isaac <arunisaac@systemreboot.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -3070,6 +3071,37 @@ the end of a test.") built-in @code{testing} package, but can be used in other contexts too.") (license license:asl2.0))) +(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 #:go go-1.25 + #:import-path "github.com/matryer/moq" + ;; Disable failing tests. + #:test-flags #~(list "-skip" + (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-golang-org-x-lint (package (name "go-golang-org-x-lint") |
