From patchwork Mon Dec 13 06:01:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35197 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 01E1C27BBEA; Mon, 13 Dec 2021 06:09:46 +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 BE2D627BBE9 for ; Mon, 13 Dec 2021 06:09:45 +0000 (GMT) Received: from localhost ([::1]:49706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweWu-0008FU-V2 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:09:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTL-0005Iw-C0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTL-00082J-0P for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTK-0002hi-RZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 40/45] gnu: Add node-serialport-parser-ready. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:02 +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.163937551710270 (code B ref 51838); Mon, 13 Dec 2021 06:06:02 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:17 +0000 Received: from localhost ([127.0.0.1]:53836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSa-0002fP-Lm for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:17 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:34376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSS-0002cz-9V for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:08 -0500 Received: by mail-ua1-f47.google.com with SMTP id n6so27370268uak.1 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:08 -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=ZiJjluInYMQG+WQpbcc5jFp6ZaJO44WYhIQJR2MUaCo=; b=XNVGFNgqQtui6D5wn7K/oHlh5Alkj8Rs9JnrVYuXnphK5plW5taO7hVWL5WFGYQaiJ X5ymMzs+PuFwSKPgxV0o8hx4Tr2TCmXMP2wftgqRCGQpTgCUaUHFWBrAuh1lKcHcMqPS /qzLp5C53x+AGDbu2ZV34dOxn8y9e+2FQY0GSywdoAZiPDO67bq+simibCkXmQkyQbrj Oe+qCBSjCZymeI/aJe+vROLSuwmjeuGSQEyR4Ggx8rpEPKqgCXeAIdMsHQWUAY+Oeirq 2ZXGwiZVsYzV2CD22K9lxmq61EzqG4j9yUqSemlsYCJI9LhNAv2n9o+xjCDt6DXCyXbn 42iQ== 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=ZiJjluInYMQG+WQpbcc5jFp6ZaJO44WYhIQJR2MUaCo=; b=VBSzTE003gw0yCxJqwiHRstJ+xt67elJHOmKrYcygUsC3f/HyTON45dHNC/UDla3gF 4SrHgr2T/Obx4MAMU6jyiYRxGwexAsUzzZGw1YFF68N/pFkagNohdU1WvOxQV6eohYi6 fBxxJ3UgwpTFyibMO47lKOEza2+qy6LGBRSbW6+T1uyYT9mn6xb1bMEIl8SdBem6lB+4 XCY00VS+GfvVjelptfRCRxi6YnPv7yU3xCPVwZgla0tqk3iUYThSdDzFJLYbR0sTMHFB JgR/Eexbi3a+OH5uyL52z8yjcF9vzqI6/vQFcgPtiIabHtz43Rblp8ZcpXQF+y929b75 nPJg== X-Gm-Message-State: AOAM530RTJYFOjngkSGQedS1zn8nK7h5AqQ0Aeht+Lt9jD70lk4WaISl BvbW7OmXsU7e+Hm/Xp0+XQ3PGGjdCy9Pxrdl5ag= X-Google-Smtp-Source: ABdhPJxRLAZzBRjJFnqIYAtGvnf5Q/+TJKWcXsZJG3iQ/dfEeYy3noDMcyWH7ZZL8IX54rv+Uo5Q3A== X-Received: by 2002:ab0:2696:: with SMTP id t22mr39267732uao.13.1639375502916; Sun, 12 Dec 2021 22:05:02 -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 bk3sm3719792vkb.33.2021.12.12.22.05.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:02 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:02 -0500 Message-Id: <20211213060107.129223-41-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-ready): 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 f8c6cce95c..8cc4efeed8 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1141,3 +1141,26 @@ (define-public node-serialport-parser-regex Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Regex}, a parser that uses a regular expression to split the incoming text."))) + +(define-public node-serialport-parser-ready + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-ready") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-ready")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to wait for specified byte sequence") + (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{Ready}, a parser that waits for a +specified sequence of ``ready'' bytes before emitting a ready event and +emitting data events.")))