From patchwork Fri May 17 19:27:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 64516 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 1793C27BBEC; Fri, 17 May 2024 20:29:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 4D39627BBE2 for ; Fri, 17 May 2024 20:29:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s83GG-00010K-7s; Fri, 17 May 2024 15:29:00 -0400 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 1s83GF-0000zv-1Y for guix-patches@gnu.org; Fri, 17 May 2024 15:28:59 -0400 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 1s83GE-0000Tk-Q5 for guix-patches@gnu.org; Fri, 17 May 2024 15:28:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s83GH-0000BH-Nx for guix-patches@gnu.org; Fri, 17 May 2024 15:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71014] [PATCH 1/5] gnu: Add go-github-com-pion-turn-v3. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 May 2024 19:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71014 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71014@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 71014-submit@debbugs.gnu.org id=B71014.1715974118645 (code B ref 71014); Fri, 17 May 2024 19:29:01 +0000 Received: (at 71014) by debbugs.gnu.org; 17 May 2024 19:28:38 +0000 Received: from localhost ([127.0.0.1]:56862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s83Ft-0000AF-UL for submit@debbugs.gnu.org; Fri, 17 May 2024 15:28:38 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:52480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s83Fq-00009q-R6 for 71014@debbugs.gnu.org; Fri, 17 May 2024 15:28:36 -0400 Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-523b017a5c6so3617011e87.1 for <71014@debbugs.gnu.org>; Fri, 17 May 2024 12:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715974045; x=1716578845; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=26veL6tJHXrJb7ws3T49AzPd+2DC8D7+2QeX29/FpNo=; b=W70kLukc05tu0OOinh6idVvwBLlzr48mnExwl/Lw0YIYHMiMVz6qqglT92mLjjdwtZ zx6e/6Wj/mrfPyMjqEnj2cO7UPfHc0Jpd4r/WHANjOvg1Es+wMQLwm5IN36qofcoZsVz 3susDWMeDnQVEaM8BvxazaerEGkTNJz296kmJ6yCeQ/is3Lnp64hTrb0YY96exb8X9Hx 7X2SsI7k1f6UepGGtKKia2n4Qy/cn9xFFvbxd0gMY9axgEVuZPHcMcZnaoAqnLK7JIWH jSxSqOa298znqn8CLe5IganRbCvxiwRfjsMY/a69RvJPyPVyEWLkmKjxBlPh2+i/96+7 yHwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715974045; x=1716578845; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=26veL6tJHXrJb7ws3T49AzPd+2DC8D7+2QeX29/FpNo=; b=qcHQMGT8LFWYTh0LdGtAhBxdw0iSy5pqzx+o3vGt51AKXwZf1cnTNH8JtYMh0DDQP9 ZiaITnb1XId/3C1t0iZPpk6JHO7HHhIRygS3IwyCZ/HnhG59OCI6/vNp/KcNKq/v53yy DrIaw9j4l8ue44zXcvilzBuKZRJoRVImBhmjBIwjApzVT7DuM2y3G6SM3HoQGtPf4ixM +wE2JObKUofF86G8cvrEPNwRTIAqffPk8VoSZIes+aHIR/tGOwEGa4lnDz7lU3C3bZ5K rKySN5yfvvibC+RQh97IAIzyIZ+Coch1iow2T1VI00vWfhI3cgNiUvyGi/C4ErDT33v9 RWbw== X-Gm-Message-State: AOJu0Yz88g8Rvsw3epCMeU6i9dhRMZdvDY92pk9RlP17rRvxaS1gXGqy kL+/d7W9UfnsZu2oyURO5a27MhqC4btLLtccjH8otEeySExqPu+aYXctTA== X-Google-Smtp-Source: AGHT+IFW5EPv9gSzTPmutpq8Bh+4P9ylFJvsnSVx742MLAPrFs6rO2MnyEuUKG9w3fLln8DFoNY41g== X-Received: by 2002:a05:6512:3095:b0:522:8352:ff29 with SMTP id 2adb3069b0e04-52283530024mr18429422e87.42.1715974045151; Fri, 17 May 2024 12:27:25 -0700 (PDT) Received: from elephant.. ([95.79.11.228]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d8963sm3404900e87.237.2024.05.17.12.27.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 12:27:24 -0700 (PDT) From: "Artyom V. Poptsov" Date: Fri, 17 May 2024 22:27:12 +0300 Message-ID: <69db653386fe624f42720d146ddec53438fbbfee.1715973559.git.poptsov.artyom@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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/golang-xyz.scm (go-github-com-pion-turn-v3): New variable. Change-Id: I6127d3ba42268441e7b052a7a7693341ef7b7df9 --- gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e69a65c3da..862e611e75 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -3006,6 +3006,51 @@ (define-public go-github-com-pion-logging Pion}.") (license license:expat))) +(define-public go-github-com-pion-turn-v3 + (package + (name "go-github-com-pion-turn") + (version "3.0.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pion/turn/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0l78m9ym0sv1zfalbv95lwblmr789fc53d957ph5mdznhjx89lyx")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.21 + #:tests? #f ;Tests require network access. + #:unpack-path "github.com/pion/turn/v3" + #:import-path "github.com/pion/turn/v3")) + (native-inputs (list go-github-com-stretchr-testify-next)) + (propagated-inputs (list go-github-com-pion-logging + go-github-com-pion-randutil + go-github-com-pion-stun-v2 + go-github-com-pion-transport-v3)) + (home-page "https://github.com/pion/turn/") + (synopsis "Pion TURN, an API for building TURN clients and servers") + (description + "@url{https://github.com/pion, Pion} TURN is a Go toolkit for building +@url{https://datatracker.ietf.org/doc/html/rfc8656, TURN} servers and clients. + +@code{pion/turn} is an API for building STUN/TURN clients and servers, not a binary +you deploy then configure. It may require copying the examples and making minor +modifications to fit your need, no knowledge of Go is required however. You may be +able to download the pre-made binaries of our examples if you wish to get started +quickly. + +The advantage of this is that you don't need to deal with complicated configuration +files, or custom APIs to modify the state of Pion TURN. After you instantiate an +instance of a Pion TURN server or client you interact with it like any library. The +quickest way to get started is to look at the +@url{https://github.com/pion/turn/blob/master/examples, examples} or +@url{https://godoc.org/github.com/pion/turn, GoDoc}.") + (license license:expat))) + (define-public go-github-com-prometheus-client-model (package (name "go-github-com-prometheus-client-model")