From patchwork Thu Dec 30 07:44:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35840 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 C509D27BBEA; Thu, 30 Dec 2021 07:52:57 +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 8913A27BBE9 for ; Thu, 30 Dec 2021 07:52:57 +0000 (GMT) Received: from localhost ([::1]:41244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qF6-0002eQ-P2 for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:52:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qEI-0000y6-Nt for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qEI-0007EC-DY for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2qEI-0007FS-Co for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v7 35/41] gnu: Add node-serialport-parser-regex. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:52:06 +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.164085069127706 (code B ref 51838); Thu, 30 Dec 2021 07:52:06 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:51:31 +0000 Received: from localhost ([127.0.0.1]:51260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qDf-0007Ca-KL for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:51:31 -0500 Received: from mail-vk1-f174.google.com ([209.85.221.174]:44650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qAT-000706-EP for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:48:09 -0500 Received: by mail-vk1-f174.google.com with SMTP id b77so13278218vka.11 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:48:09 -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=1vNRyASahAGoeJfr192slhvdW+iHVHKKsrA1EY7c8/k=; b=ayqe4umfh+baoEtr7RYQHrwQi7eD/4smLlAHsnO9BV4XasgQVowbJX/e0SRTBJLL+Q g6RIV7SRTSQDaCcNyJc9j/Ybbeq9h1hIeoxFcOdyha5FGzFn59/kJ9ZuMoEPjuVPDy5Y r1+RBZdY6sYgLC00SohYj4m8bO1HT6k2Q0XJAOLS7x1G+v9O/lxf+kvcUFPOKB2XE5aF 5oCrYyoSEKnxD1Y6uxI7tC4TQokdQqFI+CHFZELkOZvxMd8Tuf4BDH4Cec4b1bK/cP9f ZfFIbeTxL16HkCiDgSHhRa34SMYuwdQlrJq1dLuk3muKrVdYpd1Q7DllsCZ30+g1lOg4 o5Dg== 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=1vNRyASahAGoeJfr192slhvdW+iHVHKKsrA1EY7c8/k=; b=asW3JFoFs/bYL2L7epp/pWnhspE9WDRGsI4YDcZVRixkQSp/3p0Km8R4yEolEe2TkP p16RqAZYdhPwXEcCxz3QPk+Gdsh23HfFJJY2sDfq5FbyIRqUpQkzgm8Slk3yzRldD0jn oPuBq/HunYqWyEkci71fpfiEx9vPvJ7g9MxDKvKDY74dz2qqtOQuWxzbEdr8fse5ugiU 4LwjL/kiDPbO6eVt7ab6qqkamCFhcTvuQPnJncAfRzcgS2cksQQvn2nTHk0eRhe7VTJM 0NtyD0fYAmE2ziaZezXXb/hFm+XlGsRyn1+S720OBPv9rAdpgSnDz386s4dfRY4BEfJS y7Hw== X-Gm-Message-State: AOAM533SsUrfniCJeUvT7ZJiYlb8J1LxZRUyHzXLm/lix0nQ0hIjXknr 0rwusyc/RKEXTmtn8Bax2+bRGsTtetY0cfvL X-Google-Smtp-Source: ABdhPJzKVv8OXMMrljDDQNVbGyDACJKZ9ao7UmAxoaUwGRqAp3VYoUvtrwphyo1igD5m0ikqKcCaXQ== X-Received: by 2002:a05:6122:2090:: with SMTP id i16mr9475175vkd.18.1640850483939; Wed, 29 Dec 2021 23:48:03 -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 e74sm4471856vke.51.2021.12.29.23.48.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:48:03 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:44:50 -0500 Message-Id: <20211230074456.33433-36-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230074456.33433-1-philip@philipmcgrath.com> References: <20211230073919.30327-1-philip@philipmcgrath.com> <20211230074456.33433-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-regex): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 4495ea9b68..d26c4b8ba1 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1125,3 +1125,25 @@ (define-public node-serialport-bindings talk to the underlying system. You never have to use @code{Binding} objects directly. There is also a @code{MockBinding} available (but not yet packaged for Guix) to assist with testing."))) + +(define-public node-serialport-parser-regex + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-regex") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-regex")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to split data on a regular expression") + (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{Regex}, a parser that uses a regular +expression to split the incoming text.")))