From patchwork Thu Dec 30 07:39:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35801 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 8996327BBEA; Thu, 30 Dec 2021 07:47:55 +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 53A3B27BBE9 for ; Thu, 30 Dec 2021 07:47:55 +0000 (GMT) Received: from localhost ([::1]:32888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qAE-0004pI-Fc for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:47:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q9O-0004A1-Rh for guix-patches@gnu.org; Thu, 30 Dec 2021 02:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q9O-0005rp-Ek for guix-patches@gnu.org; Thu, 30 Dec 2021 02:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q9O-0006tl-Cq for guix-patches@gnu.org; Thu, 30 Dec 2021 02:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 39/41] gnu: Add node-serialport-parser-byte-length. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:47: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.164085040426393 (code B ref 51838); Thu, 30 Dec 2021 07:47:02 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:46:44 +0000 Received: from localhost ([127.0.0.1]:51119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q95-0006rc-QE for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:46:44 -0500 Received: from mail-qv1-f54.google.com ([209.85.219.54]:42866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5u-0006eV-7n for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:26 -0500 Received: by mail-qv1-f54.google.com with SMTP id q4so21372059qvh.9 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:43:26 -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=dxLKFWLts92XCj0I6UKFWGMKtkIndexOcNXx7fs7bMQ=; b=jZLzdOFD/NCw5bbIfATmRt+OsyH6FoEZoC2SY1tKbw1dLA62plmY53uAV0PwxqC5p0 hh+IvUI4udf7lB7S2JATLWqdHR2KvO8OmoCsjfLC6v0OWCj2H7uspMXarSp/QM4tgJwG xL+BmyHTdmxrtj17XaM8ndeoAJIBRxp/Chptk1u0Dqw6M1Xmcd5MGJAodnYkatVWUSwe ntU3VMM9X2dr7zf1r0IdwlqdWD2JsKOosR62LYl4i2us7XXMNMNEtRSmUJheqL01WAjm wFX981SN3bSwN3yJVvzt1aAsJ8GG3Qow+FMUvVoL+Ie7iv6r/L4rPGKEVaWx8Ps8QvfL nAzg== 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=dxLKFWLts92XCj0I6UKFWGMKtkIndexOcNXx7fs7bMQ=; b=qmIxRuXCjWRV529k3xFpKvO9YUH1AAxbFkOmUhdkYwvaaVn09MPGIf1X6tqbg+Ayh0 WJiPtVDYuOB7Tahq7Xw7ydgAJFCv/rxN4jH3tf8RQAWoFeMXRu81myx5nW46ASpDN8WM n4N11CstHZfESo74VEa18LTmbWiwJaOjLMuyT5gaBKf0PQ49uaiJcE3rbUdprmWaDRAi TI5qIiFtgf2hQvKw3foOSIX9Wa1R7lahb5vHI++0KT6yZIaWPKg1JrsI4jE5EG0GqXKL wbNN9Shw9LzbSwcuZCzP+72nqUp7hG+oMYMHL569QtnWdd4sYQEOVphK+r7aJzmLWJaJ mQYQ== X-Gm-Message-State: AOAM530Yb2/5ZZnNqdfCwSj321W9rKjIjebx8zobH9pA3dVCO8OvAz/X JezbRajxPu9x7Od4xwsKQVwkHwHlSk6rD10f X-Google-Smtp-Source: ABdhPJyGDI9BMuT9oNI6LOrmds4MciCjPy+S9P1l8bw0VGsvoxkrgB21zMJ2tETxQ6FkDgEMOt1p+Q== X-Received: by 2002:a05:6214:ac1:: with SMTP id g1mr26560841qvi.66.1640850200835; Wed, 29 Dec 2021 23:43:20 -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 r13sm20522534qtw.41.2021.12.29.23.43.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:43:20 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:17 -0500 Message-Id: <20211230073919.30327-40-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-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 758d72a52a..e427f31b1a 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1295,3 +1295,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.")))