guix-commits
[Top][All Lists]
Advanced

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

148/401: gnu: Add go-github-com-viant-toolbox.


From: guix-commits
Subject: 148/401: gnu: Add go-github-com-viant-toolbox.
Date: Thu, 26 Dec 2024 19:30:47 -0500 (EST)

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

commit 025a522888e06cfc9dd55dfe99917cb307789351
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 15 11:04:49 2024 +0000

    gnu: Add go-github-com-viant-toolbox.
    
    These packages can't be added individually because of bootstrap and
    dependencies chain.
    
    * gnu/packages/golang-xyz.scm ( go-github-com-viant-assertly,
    go-github-com-viant-assertly-bootstrap, go-github-com-viant-toolbox,
    go-github-com-viant-toolbox-bootstrap, go-github-com-viant-xreflect,
    go-github-com-viant-xunsafe): New variables.
    
    Change-Id: I2aae108e6ed5f4c3ac054af515225d76d5f9d1d1
    
    gnu: Add go-github-com-viant-assertly.
    
    * gnu/packages/golang-check.scm (go-github-com-viant-assertly): New 
variable.
    
    Change-Id: Ic6e9900d7cb5edfa8a0bf3229594a02c68a379ad
---
 gnu/packages/golang-check.scm |  58 +++++++++++++++++++
 gnu/packages/golang-xyz.scm   | 126 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 184 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 0dc444f279..a6caa49b3e 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -1319,6 +1319,64 @@ functions and even in applications.")
 functions for writing tests in an @code{xUnit} style.")
     (license license:expat)))
 
+(define-public go-github-com-viant-assertly
+  (package
+    (name "go-github-com-viant-assertly")
+    (version "0.9.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/viant/assertly";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0mli7kfkaz3k4izx76w14qhq5a8bp6x1zw9471idrhg5wxg1mr1r"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/viant/assertly"
+      #:test-flags #~(list "-skip" "TestAssertCoalesceWithZero")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              ;; failed to expand macro 1<ds:env[\"USER\"]>3, path:[/]:,
+              ;; failed to lookup USER in env.
+              (setenv "USER" "guix"))))))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-viant-toolbox))
+    (home-page "https://github.com/viant/assertly";)
+    (synopsis "Data structure testing library)")
+    (description
+     "This library enables complex data structure testing, specifically:
+@itemize
+@item realtime transformation or casting of incompatible data types with
+directives system
+@item consistent way of testing of unordered structures
+@item contains, Range, RegExp support on any data structure deeph level
+@item switch case directive to provide expected value alternatives based on
+actual switch/case input match
+@item macro system enabling complex predicate and expression evaluation, and
+customization
+@end itemize")
+    (license license:asl2.0)))
+
+(define-public go-github-com-viant-assertly-bootstrap
+  (hidden-package
+   (package
+     (inherit go-github-com-viant-assertly)
+     (arguments
+      (list #:tests? #f
+            #:import-path "github.com/viant/assertly"
+            #:phases
+            #~(modify-phases %standard-phases
+                (delete 'build))))
+      (native-inputs '())
+      (propagated-inputs '()))))
+
 (define-public go-go-abhg-dev-requiredfield
   (package
     (name "go-go-abhg-dev-requiredfield")
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 7ec4765627..5fed581d3f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -9309,6 +9309,132 @@ distributable command line applications in an 
expressive way.")
            go-github-com-xrash-smetrics
            go-gopkg-in-yaml-v3))))
 
+(define-public go-github-com-viant-toolbox
+  (package
+    (name "go-github-com-viant-toolbox")
+    (version "0.37.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/viant/toolbox";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1m49nar5cwx3wqym20awh7yw4fw2bdw21m4h71bx4g688gv1kri4"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/viant/toolbox"
+      #:test-flags #~(list "-skip" "TestCase_To|Test_NewReplayService")
+      #:test-subdirs #~(list "bridge/..."
+                             "cred/..."
+                             "data/..."
+                             "format/..."
+                             "sampler/..."
+                             "secret/..."
+                             "ssh/..."
+                             "test/..."
+                             "unsafe/..."
+                             "url/...")))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    ;; XXX: No go.mod to list dependencies, see
+    ;; <https://github.com/viant/toolbox/pull/51>.
+    (propagated-inputs
+     (list ;go-cloud-google-com-go-storage
+           ;go-github-com-aws-aws-sdk-go-aws
+           ;go-github-com-aws-aws-sdk-go-aws-credentials
+           ;go-github-com-aws-aws-sdk-go-aws-session
+           ;go-github-com-aws-aws-sdk-go-service-kms
+           ;go-github-com-aws-aws-sdk-go-service-s3
+           ;go-github-com-aws-aws-sdk-go-service-s3-s3manager
+           ;go-github-com-aws-aws-sdk-go-service-ssm
+           go-github-com-go-errors-errors
+           go-github-com-lunixbochs-vtclean
+           go-github-com-pkg-errors
+           go-github-com-viant-xunsafe
+           go-golang-org-x-crypto
+           go-golang-org-x-oauth2
+           ;go-google-golang-org-api-cloudkms-v1
+           ;go-google-golang-org-api-option
+           go-gopkg-in-yaml-v2))
+    (home-page "https://github.com/viant/toolbox";)
+    (synopsis "Utility library for Golang")
+    (description
+     "This package provides set of utilities/abstractions developed as part of
+datastore connectivity and testing (viant/dsc, viant/dsunit).")
+    (license license:asl2.0)))
+
+(define-public go-github-com-viant-toolbox-bootstrap
+  (hidden-package
+   (package
+     (inherit go-github-com-viant-toolbox)
+     (arguments
+      (list #:tests? #f
+            #:import-path "github.com/viant/toolbox"
+            #:phases
+            #~(modify-phases %standard-phases
+                (delete 'build))))
+     (propagated-inputs
+      (list go-github-com-go-errors-errors
+            go-github-com-pkg-errors
+            go-gopkg-in-yaml-v2)))))
+
+(define-public go-github-com-viant-xreflect
+  (package
+    (name "go-github-com-viant-xreflect")
+    (version "0.7.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/viant/xreflect";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1r5y3cbs8z9frgfqrq2yv77z43fv36s7jrk49prpbfsskgpk8rh2"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:tests? #f ; to break import cycle
+      #:import-path "github.com/viant/xreflect"))
+    (propagated-inputs
+     (list go-golang-org-x-mod))
+    (home-page "https://github.com/viant/xreflect";)
+    (synopsis "Golang reflection extension")
+    (description
+     "This package provides a reflection extension.")
+    (license license:unlicense)))
+
+(define-public go-github-com-viant-xunsafe
+  (package
+    (name "go-github-com-viant-xunsafe")
+    (version "0.9.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/viant/xunsafe";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1ddf9grf7rczik9rzwmz10xagn65sn1n7mhkp7app0d3nc3xdlgs"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/viant/xunsafe"))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-viant-xreflect))
+    (home-page "https://github.com/viant/xunsafe";)
+    (synopsis "Faster Golang reflection")
+    (description
+     "This package provides a implementation reflection that greatly improved
+performance, that is between 25 to 50x time faster than native one.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-vito-midterm
   (package
     (name "go-github-com-vito-midterm")



reply via email to

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