From patchwork Fri Mar 25 13:31:29 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: 38063 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 6506327BBEA; Fri, 25 Mar 2022 14:11: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 E5DCF27BBE9 for ; Fri, 25 Mar 2022 14:11:38 +0000 (GMT) Received: from localhost ([::1]:50002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXkfC-00031m-1m for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 10:11:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXkdn-0000ls-Cs for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXkdm-0004bk-VC for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXkdm-0003AR-Ng for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54560] [PATCH 05/47] gnu: Add go-github-com-asaskevich-govalidator. 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:10 +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.164821736311742 (code B ref 54560); Fri, 25 Mar 2022 14:10:10 +0000 Received: (at 54560) by debbugs.gnu.org; 25 Mar 2022 14:09:23 +0000 Received: from localhost ([127.0.0.1]:51976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXkd0-00033E-W9 for submit@debbugs.gnu.org; Fri, 25 Mar 2022 10:09:23 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:38465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXk45-0001ds-O9 for 54560@debbugs.gnu.org; Fri, 25 Mar 2022 09:33:18 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 27ACF3200974; Fri, 25 Mar 2022 09:33:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 25 Mar 2022 09:33:12 -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=i6Z2Q2rbkzsM8W5AhHGFd0VJ4LuWqr VHE7vR4YVylDs=; b=JUyaXLlBmOrVufrTBqsJyzg0lQYKM7A89I+WYlas75bYeA OI0upLTcy32IFQo02xrEkV6H9/XDfVpgWrbKXG5tZgV4SXp6jt/puPClnJS2NtcH buOgCN8sHkGLMkZNIqRk2kFAhmG1ep36P6GuvNrjioJBYoTNO7fmzzIVM6GjrvV5 0kO9hYYIheHPv0AdO8i2SQCi3Bv9CnXpYoyWKsiHEr530ISwU84iFCWSytTvHTfR 23hQJzM57WSY9j2JNT7ZnGNDsZ07bDnV43KMygpBjn6+aeRGm1oLpiA8582UmTFr 0Gzwnxl16G8dff1M6S5UJULPR79CObc5K1WR1IMA== 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=i6Z2Q2 rbkzsM8W5AhHGFd0VJ4LuWqrVHE7vR4YVylDs=; b=JZo6cyoeozTZgykoVx2SL+ LgHe3i2/jAJw2Agu7Oer75pQEvox54zDNUPjwOZJTnViHsU3zriE7UI+RrS6p/B4 ezCIe1N24hYpKCLhlYaQ6HYSLY0fXchEChvs7FDpoAQeutD7aYrtLK4mWWKovuwf jZ+hSuM/1DdLcBOpc9w1HI9thB7b+zuxO8xRSgmG3lngiYMCazU84eBWU8cakkbV OoLY3pJtIzfZsCg9SREoMhkwO0YOyFpCr5xCMaRxDEeayVMHFOfkOKMWiRcKFD1V 3F0jvJeEXyy1AQZ3yzMQ5hoL9BcQFFEP9W4tvRtUBn+cVsK6hF/KhIIkVbROCm9Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredtjeenucfhrhhomhepnfgvohcupfhikhhkihhlmocuoehhvghllhhosehlnhhikhhk ihdrlhgrqeenucggtffrrghtthgvrhhnpeegfeeggedvhfffiedtueegveetffefudekje euieetgffgtdfgfeeludeiteehfeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhgvlhhloh eslhhnihhkkhhirdhlrg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 09:33:11 -0400 (EDT) From: Leo =?utf-8?q?Nikkil=C3=A4?= Date: Fri, 25 Mar 2022 15:31:29 +0200 Message-Id: <20220325133211.5128-5-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-asaskevich-govalidator): New variable. --- gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f8ca9cf580..ee22952fe7 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9784,6 +9784,39 @@ (define-public go-github-com-go-chi-chi-v5 decompose request handling into many smaller layers.") (license license:expat))) +(define-public go-github-com-asaskevich-govalidator + (package + (name "go-github-com-asaskevich-govalidator") + (version "11.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/asaskevich/govalidator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0aab1pym5c6di8vidynp6ly5j4kcqv6lp2737gw0a07zng0nn8lw")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/asaskevich/govalidator" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-tests + (lambda* (#:key import-path #:allow-other-keys) + ;; Skip test that needs network access to check MX records + (substitute* (string-append "src/" import-path + "/validator_test.go") + (("func TestIsExistingEmail\\(t \\*testing\\.T\\) \\{" match) + (string-append match "\n\tt.Skip()"))) + #t))))) + (synopsis "Package of validators and sanitizers for strings, +numerics, slices and structs") + (description "A package of validators and sanitizers for strings, +structs and collections. Based on validator.js.") + (home-page "https://github.com/asaskevich/govalidator") + (license license:expat))) + (define-public go-google-golang-org-protobuf (package (name "go-google-golang-org-protobuf")