diff mbox series

[bug#54560,40/47] gnu: Add go-github-com-go-openapi-spec.

Message ID 20220325133211.5128-40-hello@lnikki.la
State New
Headers show
Series [bug#54560,01/47] gnu: Add go-google-golang-org-protobuf. | expand

Commit Message

Leo Nikkilä March 25, 2022, 1:32 p.m. UTC
* gnu/packages/golang.scm (go-github-com-go-openapi-spec): New variable.
---
 gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9b887e773a..e6d7ab5518 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10206,6 +10206,32 @@  (define-public go-github-com-go-openapi-jsonreference
     (home-page "https://github.com/go-openapi/jsonreference")
     (license license:asl2.0)))
 
+(define-public go-github-com-go-openapi-spec
+  (package
+    (name "go-github-com-go-openapi-spec")
+    (version "0.20.4")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-openapi/spec")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1gc92i6y9rcnzx1pz7q0k3s16pgpgmzgjyqvqzlyrds59jxc165s"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/go-openapi/spec"))
+    (propagated-inputs (list go-github-com-go-openapi-jsonpointer
+                             go-github-com-go-openapi-jsonreference
+                             go-github-com-go-openapi-swag go-gopkg-in-yaml-v2))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (synopsis "OpenAPI specification object model")
+    (description "The object model for OpenAPI specification
+documents.")
+    (home-page "https://github.com/go-openapi/spec")
+    (license license:asl2.0)))
+
 (define-public go-github-com-go-openapi-swag
   (package
     (name "go-github-com-go-openapi-swag")