From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4NkaKyZkzWHexgAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:47:50 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yO3HIyZkzWF+IAEAG6o9tA (envelope-from ) for ; Thu, 30 Dec 2021 08:47:50 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 306141EB35 for ; Thu, 30 Dec 2021 08:47:50 +0100 (CET) Received: from localhost ([::1]:32888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qA9-0004pI-Cg for larch@yhetil.org; Thu, 30 Dec 2021 02:47:49 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640850470; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dxLKFWLts92XCj0I6UKFWGMKtkIndexOcNXx7fs7bMQ=; b=PzJwiDeORxxNbSd410f4yNAmR7EJdw4kHaqrn1Bt7hqaHux1v/Ih1XkRqjDV9j70zh+2TP PsmN92+H6Wb3bau8wCExpE8eeQFhMlIJN2QvEArHuQ9vHdtkMlRx9bJeS8ENeQsrAsK0oX DYpijQ8HOLYn3mJTgYr4ll0MnNQoGbENKu6k6iqcNWCfJ+vgSE/dgrQanCnjxdJ6dCrMEo F7kEGvTgRy4YQcXLUHSCAOlUzrTXjax6f+JGhsPwRKZPem8a5qOjto0q7LCtLAxBX97zs4 68lytrZPIrA95zmCAuAQCRJzLyCmRSk7C405VCy9DHUaX6e3gFD37ouWZgx4JA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850470; a=rsa-sha256; cv=none; b=u6buUVSDvBgzryGgqkHOyHnyHSepOfBnpDok5FrvwALDuxIPB84UdJS5UCGttVVQJ/Wzle ghm1Ffv0JPM06BS5NiTvyUMn8h8RFHjxFh9IWwHGYgsUiH2arxPEADVnSB/yU3noscb6GX NCi7cCdAfRSiEjq/w8HXxAj0wSGgs12gKueKwSPnDo9mipXknpPYVDdztDYIjQLZXJWhDA WnSbEmTKAAhDTPSBEjEtAIwY1Bkk2TJ0XzywuUxkPelaegwIIniU5wWYS97aqnfsnuR401 +9NVUf5Ik7wlGwvauBIMAk9O2V4knf+nreaHsMMSeJwW5d1N+vaNCNKwZNP/yQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jZLzdOFD; dmarc=none; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.93 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jZLzdOFD; dmarc=none; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 306141EB35 X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: LobAPjYN0sFi * 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."))) -- 2.32.0