From d19a9e553acf6da47575a5f6bd177d478a893f71 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 26 Sep 2024 10:59:38 +0100 Subject: gnu: Add go-github-com-caarlos0-testfs. * gnu/packages/golang-check.scm (go-github-com-caarlos0-testfs): New variable. Change-Id: Iab47c0954592981c780a3e9a9afab1d0fe0f6e85 --- gnu/packages/golang-check.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 @@ (define-public go-github-com-alecthomas-assert-v2 @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")) -- cgit v1.2.3