From patchwork Fri Mar 25 13:32:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Leo_Nikkil=C3=A4?= X-Patchwork-Id: 38100 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 463DD27BBEA; Fri, 25 Mar 2022 14:21:39 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CBB0627BBE9 for ; Fri, 25 Mar 2022 14:21:38 +0000 (GMT) Received: from localhost ([::1]:38696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXkor-0005wj-Uj for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 10:21:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXkeC-0001Ft-1y for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:43 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXke6-0004n4-PT for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXke6-0003FT-KM for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:30 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54560] [PATCH 42/47] gnu: Add go-github-com-go-openapi-analysis. Resent-From: Leo =?utf-8?q?Nikkil=C3=A4?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Mar 2022 14:10:30 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54560 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54560@debbugs.gnu.org Cc: Leo =?utf-8?q?Nikkil=C3=A4?= Received: via spool by 54560-submit@debbugs.gnu.org id=B54560.164821740412083 (code B ref 54560); Fri, 25 Mar 2022 14:10:30 +0000 Received: (at 54560) by debbugs.gnu.org; 25 Mar 2022 14:10:04 +0000 Received: from localhost ([127.0.0.1]:52054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXkde-00038b-IP for submit@debbugs.gnu.org; Fri, 25 Mar 2022 10:10:03 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:37283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXk50-0001oX-If for 54560@debbugs.gnu.org; Fri, 25 Mar 2022 09:34:15 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 01F4332008FD; Fri, 25 Mar 2022 09:34:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 25 Mar 2022 09:34:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lnikki.la; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; bh=VSZa82KtMJgykBqP0FWARpgzvlC3ti cTE1GEmyq9NEQ=; b=3Wx+w7N+ebhPJV/qd+OgHbDKSd9m7LlDzuFTcXpEU+GZn5 qaJ7Sq5h31Kx24aJhfv/6zPmcYShtCPzyTTiOHbblUoXUdSQeeRP94QWEqxWCl7U +T1yW/gyhepj+Ycl1qQpSaWazZjBHQurvDaE7wlnoID1gLb54d4h3nbMx/qhMbFm wPgiojcd2bCk38+tHGB+oqv8+HezTLWG3+mOSJNvx9qpeCWrVGal0iL9BByZFRsg Wy1zt99KlwBtAyB+1LBvH5G0PVry1MVLWpSYmwEOnXljWQbEnjOiODm6fCprXKzK 5YZi+GASecVcjFWSmPpoZFsndpVcnXqtYPm2UwZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=VSZa82 KtMJgykBqP0FWARpgzvlC3ticTE1GEmyq9NEQ=; b=GIvGjDLxjw0B2E3aRoxc/h 1RTgtrsTLp+mjtrTdK9WFvyCXYCP1XVf22FRWTF4gHNneqg3A7rd5ichOy/WfsXV 4sxp8A5lPdxlcbvYAz3WTOpYuYzOyi6pVJnFSLuSFhdFrPJUEstekfKNW8yqvg15 0G1YlIp6cOuGZH2uCDG3QMWvhKuOShWrzPuSWTuDNJqOhrIZk3HB9QHYk8CNXDxM HxLiLPC2d9i0f/6y0wS33konla7j1zG08sbwSBStEV3qaccA8+TgUiqWl24tABHx fnPfP3ajEpYOtRZmbP4IRYeLgJ2DLWenW3G7i7s5xdeKvNeXlLxwmaPN+TgnVPBA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredtjeenucfhrhhomhepnfgvohcupfhikhhkihhlmocuoehhvghllhhosehlnhhikhhk ihdrlhgrqeenucggtffrrghtthgvrhhnpeegfeeggedvhfffiedtueegveetffefudekje euieetgffgtdfgfeeludeiteehfeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecu vehluhhsthgvrhfuihiivgepheenucfrrghrrghmpehmrghilhhfrhhomhephhgvlhhloh eslhhnihhkkhhirdhlrg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 09:34:07 -0400 (EDT) From: Leo =?utf-8?q?Nikkil=C3=A4?= Date: Fri, 25 Mar 2022 15:32:06 +0200 Message-Id: <20220325133211.5128-42-hello@lnikki.la> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220325133211.5128-1-hello@lnikki.la> References: <20220325133211.5128-1-hello@lnikki.la> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 25 Mar 2022 10:09:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-go-openapi-analysis): New variable. --- gnu/packages/golang.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8256ad5ad6..bebde5fe89 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10135,6 +10135,43 @@ (define-public go-github-com-go-logfmt-logfmt (home-page "https://github.com/go-logfmt/logfmt") (license license:expat))) +(define-public go-github-com-go-openapi-analysis + (package + (name "go-github-com-go-openapi-analysis") + (version "0.21.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-openapi/analysis") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kwal4skrv4nayif71cdvirsa76vm7s9lrqyac33gsc8gzsfdh7z")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/go-openapi/analysis" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tests + (lambda* (#:key import-path #:allow-other-keys) + ;; Skip test that needs network access + (substitute* (string-append "src/" import-path "/flatten_test.go") + (("func TestFlatten_RemoteAbsolute\\(t \\*testing\\.T\\) \\{" + match) + (string-append match "\n\tt.Skip()"))) + #t))))) + (propagated-inputs (list go-github-com-go-openapi-jsonpointer + go-github-com-go-openapi-spec + go-github-com-go-openapi-strfmt + go-github-com-go-openapi-swag)) + (native-inputs (list go-github-com-stretchr-testify)) + (synopsis "OpenAPI specification object model analyzer") + (description "A foundational library to analyze an OAI specification +document for easier reasoning about the content.") + (home-page "https://github.com/go-openapi/analysis") + (license license:asl2.0))) + (define-public go-github-com-go-openapi-errors (package (name "go-github-com-go-openapi-errors")