From patchwork Sat Jan 8 08:42:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 36156 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 6ED6827BBEA; Sat, 8 Jan 2022 08:58:07 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,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 3B0B427BBE9 for ; Sat, 8 Jan 2022 08:58:07 +0000 (GMT) Received: from localhost ([::1]:38150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Y5-00064o-Tq for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 03:58:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MX-0003vi-St for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MX-0004ds-C7 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MW-0000wl-Am for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 33/41] gnu: Add node-serialport-parser-readline. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46: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 , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315673629 (code B ref 51838); Sat, 08 Jan 2022 08:46:08 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:46:07 +0000 Received: from localhost ([127.0.0.1]:46412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67MV-0000wL-2P for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:46:07 -0500 Received: from mail-qv1-f42.google.com ([209.85.219.42]:34319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67MT-0000uI-Pq for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:46:06 -0500 Received: by mail-qv1-f42.google.com with SMTP id ke6so7976962qvb.1 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:46:05 -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=IyVQraU/GOE6tIB+AuRuQbDeAuL0pm5Ao8+mEcjjxIo=; b=kYMcfgvir9nisTt7hQ8Oj/PqAYD/jy8NW5KImgRp2BzG3y3EQIxay/FcJA/nyQBA3+ MDYAzhLHYYTb9cjBe0oMaAac+wRIQZhuM+yHTvRzBmG/utLhf9RznRTFwObJ7XUpRGwy becoIZarGhDB/SJzpRmEga/4JJbvrYqlaRV8H9cLBm34ti1cc1fWy08x26QbHNB7FnuX dH8FTPoM1hyifLJcQx3FzEJ4geO5HYsg5j70Qn2G/0ja9mLUw93D8cLr5xqIw13OxbUY iedMpcPXW4lMK7553DQCv2DBWLqi0e4z5KBKm3ZoI5HF/pOoO/ab5ObmmEypeN/YaP1Y 90YA== 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=IyVQraU/GOE6tIB+AuRuQbDeAuL0pm5Ao8+mEcjjxIo=; b=IBgb5xc7TIus6UXf750mHSyFbDyZ3znbCwXq+qVMIqkmeIiE99JZRfTTWpa1IF1KGl J9vjuL02kedLC/pdpxogrbRtYAy4T8PGRUU1CvMSgVuQtZ8ePrwaiaNbxCzLX6DNodM7 kem1IOl4vR4sPgP5v4ct+yfsQDDqWeRjzHJjk1cXLNAdnsGj/ozikPG5rXU049A/YOiO ge20ujrbLgGWMrVN6mDM/3D3LyheY12ZBxI4F73A2P9nBiJ1BYl/TwbVbovig2L0vw2v 62IlMafhwbVB+nuXi8ed8kmXFfO1Hc6gIl6j84gjp39EuR8ljPTsrKBkyQhskIeQCCC5 VTEg== X-Gm-Message-State: AOAM533ouJezAcrBfKce5AgIOYuNpoWZRM9/fkzAs0aRckcMhI21JsUA 450t66/FrHTlrXI6K7TivcWj21A3U0m/DSQm X-Google-Smtp-Source: ABdhPJy91yCyDbLBLLiYyS01iB6d1JjT7mlPFEil+K9S0rvwJjr/F6NUAF6ewtXH8qTG9+5WFyeR3A== X-Received: by 2002:a05:6214:5091:: with SMTP id kk17mr61501045qvb.93.1641631560286; Sat, 08 Jan 2022 00:46:00 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id x15sm677584qkm.118.2022.01.08.00.45.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:46:00 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:21 -0500 Message-Id: <20220108084229.362642-34-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index d35e4c6ba6..8e70afb71c 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1086,3 +1086,26 @@ (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 + (list 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.")))