From patchwork Sun Feb 11 22:08:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Miguel_=C3=81ngel_Moreno?= X-Patchwork-Id: 23222 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 4A57827BBEA; Mon, 12 Feb 2024 05:38:24 +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=ham 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 6F02727BBE2 for ; Mon, 12 Feb 2024 05:38:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZOxy-00078b-0f; Mon, 12 Feb 2024 00:34:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZOxw-000783-JZ for guix-patches@gnu.org; Mon, 12 Feb 2024 00:34:52 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZOxw-0005BV-Bg for guix-patches@gnu.org; Mon, 12 Feb 2024 00:34:52 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZOyC-0001Gq-Rx for guix-patches@gnu.org; Mon, 12 Feb 2024 00:35:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62284] [PATCH v2 67/71] gnu: Add go-maunium-net-go-mautrix. Resent-From: Miguel =?utf-8?b?w4FuZ2Vs?= Moreno Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Feb 2024 05:35:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62284 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62284@debbugs.gnu.org Cc: mail@migalmoreno.com Received: via spool by 62284-submit@debbugs.gnu.org id=B62284.17077161044783 (code B ref 62284); Mon, 12 Feb 2024 05:35:08 +0000 Received: (at 62284) by debbugs.gnu.org; 12 Feb 2024 05:35:04 +0000 Received: from localhost ([127.0.0.1]:55909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZOy7-0001Em-7n for submit@debbugs.gnu.org; Mon, 12 Feb 2024 00:35:03 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZI0m-0005a0-Gs for 62284@debbugs.gnu.org; Sun, 11 Feb 2024 17:09:21 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 22EA120004; Sun, 11 Feb 2024 22:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=migalmoreno.com; s=gm1; t=1707689338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=szwxgIBkHhrhxhpETJk7ch0QPKpxTJW589Fu2hKb3H4=; b=X5ld2OqHORIhyNAQc3fC872JfU/uwMBIGklqS3Bbt/c2e++M0Gn7bb2JH+kkRnEU5PBef3 PFgk9HSEYJmZq9iVLkZOkGVmcWfAYaukfRVXTYW1TOhArLcfBmVBnVt5JRtPLqccya766I 5FHZCxyVzgswgEonkbMnTo6L3sDqFR65cEpO/s9iV2hKwkMaXHj+9pQ0mqn/mrj5LrK5Dw zGOObim5r+DfMig7B8xI2dPOZ4zWhZcFIcDhu1+AChLh3KtMNy61AeN2qY58ogBf1ezV43 +TPYyOy/7jNABNMnMgTIzcgQ0ZcDzimdjOvTsezXvsG4MhFgoOm3GE6jQ/jerw== From: Miguel =?utf-8?b?w4FuZ2Vs?= Moreno In-Reply-To: References: Message-Id: Date: Sun, 11 Feb 2024 23:08:57 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-GND-Sasl: mail@migalmoreno.com X-Mailman-Approved-At: Mon, 12 Feb 2024 00:33:03 -0500 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/matrix.scm (go-maunium-net-go-mautrix): New variable. Change-Id: I325a657b6491778e341ceb04ac98b7f0f3c6e294 --- gnu/packages/matrix.scm | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) -- 2.41.0 -- Best regards, Miguel Ángel Moreno diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index 32ae62fcb4..49b274597a 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -27,6 +27,9 @@ (define-module (gnu packages matrix) #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages glib) + #:use-module (gnu packages golang) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-web) #:use-module (gnu packages monitoring) #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) @@ -36,11 +39,58 @@ (define-module (gnu packages matrix) #:use-module (gnu packages xml) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) + #:use-module (guix build-system go) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages)) +(define-public go-maunium-net-go-mautrix + (package + (name "go-maunium-net-go-mautrix") + (version "0.15.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mautrix/go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n71zaiir9kcrh5wkyx2h12lkr6h9srlfh3ikdzvjcw9rq2nc7dq")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.19 + #:import-path "maunium.net/go/mautrix")) + (propagated-inputs + (list + go-github-com-gorilla-mux + go-github-com-lib-pq + go-github-com-rs-zerolog + go-github-com-stretchr-testify + go-github-com-tidwall-gjson + go-github-com-tidwall-sjson + go-github-com-yuin-goldmark + go-golang-org-x-crypto + go-golang-org-x-net + go-mau-fi-zeroconfig + go-maunium-net-go-mauflag + go-maunium-net-go-maulogger)) + (home-page "https://github.com/mautrix/go") + (synopsis "A Golang Matrix framework") + (description "A Golang Matrix framework. In addition to the basic +client API features the original project has, this framework also has: +@itemize +@item Appservice support (Intent API like mautrix-python, room state +storage, etc) +@item End-to-end encryption support (incl. interactive SAS verification) +@item Structs for parsing event content +@item Helpers for parsing and generating Matrix HTML +@item Helpers for handling push rules +@end itemize") + (license license:mpl2.0))) + (define-public python-matrix-client (package (name "python-matrix-client")