From f24fb6f7c67a6df5a0209dda20e85b6dc8ddd744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Nikkil=C3=A4?= Date: Sat, 24 Aug 2024 19:46:51 +0100 Subject: [PATCH] gnu: Add go-github-com-go-openapi-spec. * gnu/packages/golang-web.scm (go-github-com-go-openapi-spec): New variable. Signed-off-by: Sharlatan Hellseher Change-Id: I4fa578345ffa7ad550926b37489f1a0c5a827fb9 --- gnu/packages/golang-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 1b75fb9406d9cc491b254ba3a29b0a7c2b936dce..58ef149541d8ab0c74ca918f3e3abac5a1f0428b 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1428,6 +1428,38 @@ prototyped in @url{https://github.com/xeipuuv/gojsonpointer}.") prototyped in @url{https://github.com/xeipuuv/gojsonreference}.") (license license:asl2.0))) +(define-public go-github-com-go-openapi-spec + (package + (name "go-github-com-go-openapi-spec") + (version "0.21.0") + (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 "07qp7gakrjwznbxg1w5ww8j0ky407s9rmyyrpwv5rsp8yw6qimjc")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/go-openapi/spec")) + (native-inputs + (list go-github-com-stretchr-testify)) + (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-v3)) + (home-page "https://github.com/go-openapi/spec") + (synopsis "OpenAPI specification object model") + (description + "This package implements functionality to marshal and unmarshal +@url{https://swagger.io/,Swagger} API specifications into a Golang object +model.") + (license license:asl2.0))) + (define-public go-github-com-go-openapi-swag (package (name "go-github-com-go-openapi-swag")