aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-09-26 10:59:38 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-11-09 21:33:55 +0000
commitd19a9e553acf6da47575a5f6bd177d478a893f71 (patch)
tree7fe7c4bb2efc7a1f4bf5d63e6dfb15c40ee34c21
parent3e3b6202aa6290e6bf0631552b2e08cb63d3d36c (diff)
downloadguix-d19a9e553acf6da47575a5f6bd177d478a893f71.tar.gz
guix-d19a9e553acf6da47575a5f6bd177d478a893f71.zip
gnu: Add go-github-com-caarlos0-testfs.
* gnu/packages/golang-check.scm (go-github-com-caarlos0-testfs): New variable. Change-Id: Iab47c0954592981c780a3e9a9afab1d0fe0f6e85
-rw-r--r--gnu/packages/golang-check.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 183b11fa5b..958b35f63d 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -119,6 +119,30 @@ value and call @code{t.Fatal()} if the assertion fails.")
@end itemize")
(license license:expat)))
+(define-public go-github-com-caarlos0-testfs
+ (package
+ (name "go-github-com-caarlos0-testfs")
+ (version "0.4.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/caarlos0/testfs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0g7acw554f2d4y35qipdz5c627w83jxmq1z32d7nkpchzj0y7rf1"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/caarlos0/testfs"))
+ (home-page "https://github.com/caarlos0/testfs")
+ (synopsis "Golang @code{fs.FS} implementation to be used inside tests")
+ (description
+ "Package testfs provides a simple @code{fs.FS} which is contained in a
+test (using testing.TB's @code{TempDir}) and with a few helper methods.")
+ (license license:expat)))
+
(define-public go-github-com-cheekybits-is
(let ((commit "68e9c0620927fb5427fda3708222d0edee89eae9")
(revision "0"))