From patchwork Mon Dec 13 06:00:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35192 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 5215B27BBEA; Mon, 13 Dec 2021 06:08:42 +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_H2,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 1B5A327BBE9 for ; Mon, 13 Dec 2021 06:08:42 +0000 (GMT) Received: from localhost ([::1]:48590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVt-0007S1-5L for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweST-0003fz-9W for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweSS-0007aM-Iy for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweSS-0002eY-Di for guix-patches@gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 37/45] gnu: Add node-serialport-parser-readling. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:05:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163937550010062 (code B ref 51838); Mon, 13 Dec 2021 06:05:08 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:00 +0000 Received: from localhost ([127.0.0.1]:53810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSK-0002c8-6V for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:00 -0500 Received: from mail-vk1-f174.google.com ([209.85.221.174]:36527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSG-0002am-0s for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:04:57 -0500 Received: by mail-vk1-f174.google.com with SMTP id b192so9719212vkf.3 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ba+tsJOVlqWy5oRYwOXFKh+Lk78JBhg3ybvcimvcfGg=; b=CaJf/7dEgQLCMyaXXExVQN/GUMu2mGXEV+zf4lPUR0TWd2CYZgKmD0RprMWkQmYQuF 8yXF8Rf+QUpkW/EvO1PlhfS3ALWK0mljKCuVE3AkDji5TUORC829cX5Wa4vx5fZze1n4 KU9ExGYFgfUWnb8/acgtPadBzC2UfxQxxkbtpDB3fB4EXVmfCtSytG4slN2oyg+fuX2L 23dNEtnfNIJIn+Na/NPNwU/4EPnRu2qw7WaZwgspjS+1AdVykodl4PWZZzJfz3MZwbc2 igvJmup2sHZTGj3sdkHpMdifDVb5krnx6Fx7iH/gMIVLEXY8yrSPjbIqVpk2VrK7i082 0kjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ba+tsJOVlqWy5oRYwOXFKh+Lk78JBhg3ybvcimvcfGg=; b=xbS7FzVWkmtA+Hz6FYGPTEenzU84eFBbdeLUj/Oj2QqOFRa/RYu4zpzI9jo1rkTNEQ l5m2geWZ0N+fVOKNe/0Wisx46j6Z6f9CDo+51rxvUw5WohZXhSbAmGm9qA5TXg2E9nLq cpUC3C26jcVZQDjGn38v+SlJ17RcX0eHG07bPH7hHd5VWoO9w7/wDl31emQoiTVcnfJU cOV7XHI21ss7KY7OY6vVX9JnQlaKjuwiOGouk2Yz/QocIM97qe0R4EI8J0g07jkWXPMu 6OwmohZZeTk+dSzlc91eBY1Y6qNgAcUThCYtxKr0hLLOOTL5LCH8ZaTkkDJ7jRfoQMAP 8uxw== X-Gm-Message-State: AOAM5309xL//RJ6gEisS4859TwJSXUvpzItO9EuBaGfS79b5KSpa+VVN ff75ccRyQYNcknZL8RagXxP9UOJRitYaaA7TfcI= X-Google-Smtp-Source: ABdhPJytlqzd2jB5IbPYc7NDHAiw+e6BRzGpFJM/1MSdBTtNLTaKwE7BW0fyWNzsYPAOTXy8d5uOdA== X-Received: by 2002:a1f:3094:: with SMTP id w142mr29390003vkw.7.1639375490723; Sun, 12 Dec 2021 22:04:50 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id s10sm3881018vkf.9.2021.12.12.22.04.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:04:50 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:00:59 -0500 Message-Id: <20211213060107.129223-38-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211213060107.129223-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-1-philip@philipmcgrath.com> <20211208202838.752542-5-philip@philipmcgrath.com> <877dc924h7.fsf@gmx.com> <5c62c3ce-dd50-5dcd-00ed-ff1524be4e0b@philipmcgrath.com> <20211213060107.129223-1-philip@philipmcgrath.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/node-xyz.scm (node-serialport-parser-readline): New variable. --- gnu/packages/node-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 4e69fd146f..873e0f9a39 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1039,3 +1039,27 @@ (define-public node-serialport-parser-delimiter Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Delimiter}, a parser that emits data each time a specified byte sequence is received."))) + +(define-public node-serialport-parser-readline + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-readline") + (version "9.2.4") + (inputs + `(("node-serialport-parser-delimiter" + ,node-serialport-parser-delimiter))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-readline")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to split data on newlines") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{Readline}, a parser that emits data +after a (configurable) newline delimiter is received.")))