guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

161/172: gnu: Add go-github-com-caarlos0-testfs.


From: guix-commits
Subject: 161/172: gnu: Add go-github-com-caarlos0-testfs.
Date: Tue, 5 Nov 2024 16:05:13 -0500 (EST)

sharlatan pushed a commit to branch go-team
in repository guix.

commit a5d96964f9c0b80b8ef8e09307b3a91266623354
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Sep 26 10:59:38 2024 +0100

    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 @@ 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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]