summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-04-10 11:08:47 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-04-10 13:17:48 +0100
commit03f7d413cc3e00f730aa8df5aabc0c384884bf52 (patch)
treeb433670dd8d70252a01766732c9aeeec2e8637bb /gnu
parentc8afc72678dd1c5120c7d808beea33ee5dd2bc14 (diff)
gnu: Add go-github-com-maxbrunsfeld-counterfeiter-v6.
* gnu/packages/golang-check.scm (go-github-com-maxbrunsfeld-counterfeiter-v6): New variable. Change-Id: I0b2ec4f34cf9054859245ce3243ab5a074b20c18
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-check.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 8996234897..14a2b33d17 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -2254,6 +2254,45 @@ can be used in test code as a mock of the interface.")
Perl's @url{https://metacpan.org/pod/Test::Deep, Test::Deep perl}.")
(license license:bsd-2)))
+(define-public go-github-com-maxbrunsfeld-counterfeiter-v6
+ (package
+ (name "go-github-com-maxbrunsfeld-counterfeiter")
+ (version "6.12.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/maxbrunsfeld/counterfeiter")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0c4a8gcm3l992vydldcfsvb2jk4spnmxsk2i4klqh4fpagbpa069"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/maxbrunsfeld/counterfeiter/v6"
+ #:test-flags
+ #~(list "-skip" "TestIntegration")
+ #:test-subdirs
+ #~(list "." "arguments" "command" "generator" "integration")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'go-generate
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "generate" "-v" "-n" "./...")))))))
+ (native-inputs
+ (list go-github-com-onsi-gomega
+ go-github-com-sclevine-spec
+ go-golang-org-x-text
+ go-golang-org-x-tools))
+ (home-page "https://github.com/maxbrunsfeld/counterfeiter")
+ (synopsis "Generate self-contained, type-safe test doubles in Go")
+ (description
+ "This package provides fake implementations of the object's
+collaborators.")
+ (license license:expat)))
+
(define-public go-github-com-mfridman-tparse
(package
(name "go-github-com-mfridman-tparse")