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

commit d4d6ddafd42c2deea52399010bd1465eb873d718
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 29 20:11:41 2024 +0000

    gnu: Add go-github-com-lyft-protoc-gen-star-v2.
    
    * gnu/packages/golang-xyz.scm (go-github-com-lyft-protoc-gen-star-v2): New 
variable.
    
    Change-Id: I30bbe7463d02164e1bbd33d28a7f387ec6599f88
---
 gnu/packages/golang-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index be13f4dcb3..47e5e2cc1b 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -7856,6 +7856,54 @@ Printf/Sprintf etc.")
     (native-inputs
      (list go-github-com-stretchr-testify))))
 
+(define-public go-github-com-lyft-protoc-gen-star-v2
+  (package
+    (name "go-github-com-lyft-protoc-gen-star-v2")
+    (version "2.0.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/lyft/protoc-gen-star";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0c0w7xlarzkmbfsxdknakmnm562q3whxgs3ck3icwrva3dim94qc"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/lyft/protoc-gen-star/v2"
+      #:test-flags
+      #~(list "-skip"
+              (string-join
+               (list "TestGraph_Bidirectional"
+                     "TestGraph_Bidirectional_Messages_Enums"
+                     "TestGraph_Bidirectional_Recursive"
+                     "TestGraph_Extensions"
+                     "TestGraph_FDSet"
+                     "TestGraph_Messages"
+                     "TestGraph_Packageless"
+                     "TestGraph_Services"
+                     "TestGraph_SourceCodeInfo")
+               "|"))
+      ;; XXX: To enable all tests require more complex set up, check how to
+      ;; enable most of them.
+      #:test-subdirs #~(list ".")))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-spf13-afero
+           go-golang-org-x-tools
+           go-google-golang-org-protobuf))
+    (home-page "https://github.com/lyft/protoc-gen-star";)
+    (synopsis "Protoc plugin library for efficient proto-based code 
generation")
+    ;; The Project lacks a good README, suggesting to read source code
+    ;; "... the true documentation source is the code itself ...".
+    (description
+     "PG* is a protoc plugin library for efficient proto-based code
+generation.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-makenowjust-heredoc
   (package
     (name "go-github-com-makenowjust-heredoc")

Reply via email to