From patchwork Mon Dec 13 06:01:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35191 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 4790927BBEA; Mon, 13 Dec 2021 06:08:32 +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 11E1027BBE9 for ; Mon, 13 Dec 2021 06:08:32 +0000 (GMT) Received: from localhost ([::1]:48114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVj-00077s-46 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005Ll-JW for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-000833-8D for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mweTM-0002i4-11 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 43/45] gnu: Add node-serialport-parser-byte-length. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:03 +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.163937553210326 (code B ref 51838); Mon, 13 Dec 2021 06:06:03 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:32 +0000 Received: from localhost ([127.0.0.1]:53845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSq-0002gI-84 for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:32 -0500 Received: from mail-vk1-f182.google.com ([209.85.221.182]:43770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSe-0002fB-Dj for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:20 -0500 Received: by mail-vk1-f182.google.com with SMTP id f7so9712796vkf.10 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:20 -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=udke9hVIQSW5Hp1V5aM32MWM0oG37/1g2sNRR/89uuU=; b=ehaHEs1Yo4MfjkTrmVaSQzRJEHBeSPosuHXNkpoKoZA7vc1n5vXMzB2zcIBHHB8o6N KCxauh9srA2Ig/9d7f94cBkcfiaXXmE29Ic46mO5lsNC4/XPRw6LjAiiuu7cJaK7dZVp 2j6PQQgWFpp6bZ2mjhRHCD41pK1P+p8xr12/MnhqdAyPzjmIr0qZZcIlMBAe75u2hams a0cNJSip7povWFYWKbQ5JbMFSfBFfzYA7t8kGyP50wwTaVe+usmDoLni3AbYNKoyEu77 jIQNobBwbdLQuEKdNvPTtFLurt2yCuaC84iR0OLYBGv+5B8PnSsvnrz9LniMXEzgdn70 EU6Q== 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=udke9hVIQSW5Hp1V5aM32MWM0oG37/1g2sNRR/89uuU=; b=AKT8SNX9427wVf7hBhylBJqiABKnYkV66WAhqdOgzGCis67lsJFYsvfIC5ysEZg0sM 2WbXQj9tqlwCMRFCOKNubkK/10aFnwoYSlVmv+zVA24MFZIVurUaYVjkXyzH9ZLtePQx Mcl1kc4cFNTDtZO8j34C+JRLofyghignG+uX9ep6xrr0YnKxTzMq96N1GM3B8yRbnrgP uoL0GZY0ovV/iLBrDvMYbBd36MQJbQ/MYbbwlmXxRl2qJDmuwnjkGgQ55OTdpdbYIlc+ 1hjbyb5BTSc0T72Z1gJDUdYQLdMZpkmuHBtgYJ1xpQS88beDg5S9RFfrJRft5DPzj3kB xn9A== X-Gm-Message-State: AOAM530JO2unZyRBhGk7zSkVskWlKrlIzOIKytbwcfBGy5VNHzSmMpkt 1QxqsMeTGTPm2+mAYtFrSfin1zc4d/WI0HZizCQ= X-Google-Smtp-Source: ABdhPJxsPslEcMQdXPebRuefrU/OBfk/0qMrcMWJ7QLRmzXRseLYLRlZs14VTL9/izdo+0nGQ0a+Bg== X-Received: by 2002:a1f:9f04:: with SMTP id i4mr28906401vke.33.1639375515036; Sun, 12 Dec 2021 22:05:15 -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 o7sm3760536vkl.41.2021.12.12.22.05.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:14 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:05 -0500 Message-Id: <20211213060107.129223-44-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-byte-length): 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 00d5cb7665..3a4d155b02 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1209,3 +1209,25 @@ (define-public node-serialport-parser-cctalk messages. This package provides @code{CCTalk}, which emits packets for the ccTalk protocol (an open standard for currency detectors) as they are received."))) + +(define-public node-serialport-parser-byte-length + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-byte-length") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-byte-length")))) + #:tests? #f)) + (synopsis "Node SerialPort parser for fixed-length buffers") + (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{ByteLength}, a parser that emits data +as a buffer every time a specified number of bytes are received.")))