From patchwork Fri Mar 25 13:31:59 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: 38089 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 0B7EE27BBEA; Fri, 25 Mar 2022 14:16:00 +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 8376827BBE9 for ; Fri, 25 Mar 2022 14:15:59 +0000 (GMT) Received: from localhost ([::1]:59114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXkjO-0000Pg-LU for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 10:15:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXke2-0001Ce-CE for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:27 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXke1-0004kr-Fs for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:25 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXke1-0003E2-BJ for guix-patches@gnu.org; Fri, 25 Mar 2022 10:10:25 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54560] [PATCH 35/47] gnu: Add go-go-mongodb-org-mongo-driver. 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:25 +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.164821739811987 (code B ref 54560); Fri, 25 Mar 2022 14:10:25 +0000 Received: (at 54560) by debbugs.gnu.org; 25 Mar 2022 14:09:58 +0000 Received: from localhost ([127.0.0.1]:52034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXkdZ-00037B-FC for submit@debbugs.gnu.org; Fri, 25 Mar 2022 10:09:57 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:52719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXk4k-0001jm-PY for 54560@debbugs.gnu.org; Fri, 25 Mar 2022 09:33:59 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 58782320091A; Fri, 25 Mar 2022 09:33:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 25 Mar 2022 09:33:58 -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=ub/wv0DEl2MLqkER2/D9/2qAl5PizT sBZJXPDpEmseE=; b=WEhgdBkM+XqhQ7R/RSsDCwmuezHf8BH+GTf7F9VITCc60G w8nMVLReOK4u1MxL9i78bs3gEiAOIG3GKWT1UJozmsqlIMpXrwHXN5I9mV00R+WG fXr/y4YrnB+Tmdhv2+Duwnshu+frJvzM2UIhLRvBn1cIvZSsnH11/Tjdn5RUflab LPobJU2LTK2vNWYFgq4jnmAmTAaFZ/405b1RSm+a8j3RRxjNAsPLSEd3tR5qagAH Aysxl23jx1KHWCneaPfMvksnZbC/P8Q26bkZs6W3d3u3XCb4i36stAZdKPIQIMj3 /ala/G2SzRZyAZRxu+BRo3dU8nk++BLa6l7YN/NQ== 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=ub/wv0 DEl2MLqkER2/D9/2qAl5PizTsBZJXPDpEmseE=; b=QYMMS0je3Ph0GDpS9gWzG1 CSPNbws88afSJbcd1cZohaaYYq9SZx6qc/dCHHcFjhwvR5yKUIuuSxWOG/55ubbx eDVUHyp3HacChmCPvhRFvMStEWcOTnWRmn3yJGVHKqsclk6lLzoWu2G6QN/w29MS zGm7sQBjbrhvJntiZneVMCQuJYOR5uisBFbAZJSIaVPIKV8vS8lJnMCpSusXjgFg TkeTQabRlDXReBLpwsazQyoclJO4c1+dIRActFMyzsyqDxsM8Vht2SkWPGX5qO2T sstzmh+9vxjxgwhT3U+ZM39nCnwVLiEMN9mCLNFH2jVc2j6JEcpoF9lOTVM0O0ZA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudehuddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredtjeenucfhrhhomhepnfgvohcupfhikhhkihhlmocuoehhvghllhhosehlnhhikhhk ihdrlhgrqeenucggtffrrghtthgvrhhnpeejiedujeefffejueelhffgkeffieeifeeuhe eiueeuffffgfeikeeiteejhfevgfenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhm ohhnghhouggsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhephhgvlhhloheslhhnihhkkhhirdhlrg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Mar 2022 09:33:57 -0400 (EDT) From: Leo =?utf-8?q?Nikkil=C3=A4?= Date: Fri, 25 Mar 2022 15:31:59 +0200 Message-Id: <20220325133211.5128-35-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-go-mongodb-org-mongo-driver): New variable. --- gnu/packages/golang.scm | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e71f70520d..cf53f50fd9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10585,6 +10585,73 @@ (define-public go-github-com-youmark-pkcs8 (home-page "https://github.com/youmark/pkcs8") (license license:expat))) +(define-public go-go-mongodb-org-mongo-driver + (package + (name "go-go-mongodb-org-mongo-driver") + (version "1.8.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mongodb/mongo-go-driver") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "12lkr8p84x8n9yl1pa7gnl1hjvjr1azz3jms9cvfngq8kl8dy3ic")))) + (build-system go-build-system) + (arguments + '(#:unpack-path "go.mongodb.org/mongo-driver" + #:phases + (let ((paths '("go.mongodb.org/mongo-driver/bson" + "go.mongodb.org/mongo-driver/event" + "go.mongodb.org/mongo-driver/mongo" + "go.mongodb.org/mongo-driver/tag" + "go.mongodb.org/mongo-driver/x/bsonx" + "go.mongodb.org/mongo-driver/x/mongo/driver"))) + (modify-phases %standard-phases + (replace 'build + (lambda args + (for-each (lambda (path) + (apply (assoc-ref %standard-phases + 'build) + `(,@args #:import-path + ,path))) paths))) + (replace 'check + (lambda args + (for-each (lambda (path) + (apply (assoc-ref %standard-phases + 'check) + `(,@args #:import-path + ,path))) + ;; `mongo' tests require a running mongodb + (delete "go.mongodb.org/mongo-driver/mongo" paths)))) + (replace 'install + (lambda args + (for-each (lambda (path) + (apply (assoc-ref %standard-phases + 'install) + `(,@args #:import-path + ,path))) paths))))))) + (propagated-inputs (list go-github-com-go-stack-stack + go-github-com-golang-snappy + go-github-com-klauspost-compress + go-github-com-kr-pretty + go-github-com-montanaflynn-stats + go-github-com-pkg-errors + go-github-com-tidwall-pretty + go-github-com-xdg-go-scram + go-github-com-xdg-go-stringprep + go-github-com-youmark-pkcs8 + go-golang-org-x-crypto + go-golang-org-x-sync + go-golang-org-x-tools)) + (native-inputs (list go-github-com-google-go-cmp-cmp + go-github-com-stretchr-testify)) + (synopsis "Go driver for MongoDB") + (description "Go driver for MongoDB.") + (home-page "https://github.com/mongodb/mongo-go-driver") + (license license:asl2.0))) + (define-public go-google-golang-org-protobuf (package (name "go-google-golang-org-protobuf")