From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +I4jKKDOPWJfBAEAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 15:16:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kODJJKDOPWKQQgEAauVa8A (envelope-from ) for ; Fri, 25 Mar 2022 15:16:00 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3D7473A1BD for ; Fri, 25 Mar 2022 15:16:00 +0100 (CET) Received: from localhost ([::1]:59114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXkjP-0000Pg-Ce for larch@yhetil.org; Fri, 25 Mar 2022 10:15:59 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648217760; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ub/wv0DEl2MLqkER2/D9/2qAl5PizTsBZJXPDpEmseE=; b=iGF8cuPnE19wK9KPtd8IMz4qm/HToK+4zm0IXmmepz7U+HmwdDFqrOUUIAmObSCz0s4rWT +rqlk1tqTUBDQFc3oSZA5bMjYYc+Yoqty/Xfxc9c0jB7hL/1o/fdSgNZjZMfVLFSkHI4MU UVpP0CEDDFuqhVTMFNaSI97XuEiW8QTQ8G2WjVs0/h9nixCTdYFF7ffWQjjtlY7PWQ19Eo oIixEFpleqdkoxf5vNCN4JKDtqVHcMJ540lUJPkaC8a2/GJKaqpKEHESiAwVyZjG4s95jk DU+u/HfLza/Xjx7e0VduGfd13Hu0xjh4hPEokzGka4e1Z1MT9SnhD62Gh/Tmhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648217760; a=rsa-sha256; cv=none; b=mNFwwFjD+RwM7fy882VXWd1ez3fnewbV7rDzBPsmAXY2OBL7Hf8tjb+L3pmgMJZ9T7yDAJ 9PkkZMq1yqvKF8t8vZCF0SpVBZXMfOhAD17QHgindoaxeADMrQ5Fb2s/ss96qMTa4MCDE0 FhX9BzdLJmUX+eqJlLS2QTAk6fV+V6MyxpNKj8GaB+sAjdiH8mHM+HxhfzwOLel6T3yLv8 sgEpp9FldE3DmYZOJU5KgqNkhGjcgc4/aErF1/Qig2W/tthVIzyrz3ZIAM3uL1//aKIWLW lcO68xa+ULeMt2LovfBnQIi/WQ5/ImoDm5YS2c1kd2ThBm9nrD+ha4pxwkC/wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lnikki.la header.s=fm2 header.b=WEhgdBkM; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=QYMMS0je; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lnikki.la (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lnikki.la header.s=fm2 header.b=WEhgdBkM; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=QYMMS0je; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lnikki.la (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3D7473A1BD X-Spam-Score: 6.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: zGjTJqPUEzCM * 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") -- 2.34.0