From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gOpwLuRvzWH8CgEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 09:37:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CP4FK+RvzWFfdQEAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 09:37:56 +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 aspmx1.migadu.com (Postfix) with ESMTPS id 7888A29766 for ; Thu, 30 Dec 2021 09:37:56 +0100 (CET) Received: from localhost ([::1]:41644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qFB-0002vH-2a for larch@yhetil.org; Thu, 30 Dec 2021 02:53:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qEJ-000101-5t for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qEI-0007Ea-Q0 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-0007Fa-PH for guix-patches@gnu.org; Thu, 30 Dec 2021 02:52:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v7 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: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.164085069227714 (code B ref 51838); Thu, 30 Dec 2021 07:52:06 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:51:32 +0000 Received: from localhost ([127.0.0.1]:51262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qDj-0007Cp-H4 for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:51:31 -0500 Received: from mail-ua1-f45.google.com ([209.85.222.45]:43558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qAk-00071F-8x for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:48:26 -0500 Received: by mail-ua1-f45.google.com with SMTP id i5so26225495uaq.10 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:48: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=a9QFeltUjDCNweV8FlOFZUEbZuRRW8c3KGvnkgqcZS8=; b=N+4TTxtlw/yAD1PBppciIko0rmBaA6LsYVtrNXKVeAZVPU/rj++ZDCrSNmAeAFH/3M g+Qzg+1WZYH0up2rjxkWwPPSyh94zzliEPWR8hYJA+kplA40yoUb0juBJJznFx5ez/lf 8o/8IvME/kAIDWpborOl85+xcy0IpqRWeC7fKyFGrHTpGKqu8A/sdQtqTGPsNc/ovvrE K9GGJynLOi3GlmcIWheQ+vN+0imz85dkrrL/PI92o6wI2UrF8yb60flD8vHo5WugICvj a2LX/xlOs4OqXYBq5Z8ga/eZNxucJxuX8BcFxPywWUqH+wmL6p0gxvIK7+eiZ6Nff238 L67A== 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=a9QFeltUjDCNweV8FlOFZUEbZuRRW8c3KGvnkgqcZS8=; b=EOxIUl57EKOD7ckyha5ee/NJ0y3Vy2sxLe9Rd1Iuf/bsRBdRyGlqXeVn47uGRgDUQc z5E5NKAjYpT/nOb4fyajB1/Ytd2etmxv+IO8/4l7T6rSDvZKFpJ7gOS9z5lvE0oS0gap AH7VpmHemOVyKpG0UhfXP5kN3P+JTfSAhJVpD+jIcQMPBhSVNAWqelSOs8M+au5XhrQy prvluRNnM9bNedBHQQZS3RlRXB+mnZhl34QjVXxDj47imvZ4+iyuhxljvufFalXLSBLq RoJagAQmd5ZNdfkBdMuYe/4/IEqtguFmP6mI7bf1lXIi5e7IW6fNyFkpVrGh18fxfnK2 mI1w== X-Gm-Message-State: AOAM531akDDjMDyXjEqOrROLyC+tLSnq+0Nu1CkOtul43KkjoKwQUGuH 0Go1Df5U+ufSUZl+7VJF7Y+1jygJ4XB1IS5o X-Google-Smtp-Source: ABdhPJw9hh2QtCDPXwQvsE2rrJrrLg0CcHHdpxIV8Iv3giyoqTY9wQtJcNRcz3859b37s4bWCgFdgA== X-Received: by 2002:a05:6102:b15:: with SMTP id b21mr3309713vst.34.1640850500851; Wed, 29 Dec 2021 23:48: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 q12sm3210751uad.20.2021.12.29.23.48.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:48:20 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:44:54 -0500 Message-Id: <20211230074456.33433-40-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 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=1640853476; 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=a9QFeltUjDCNweV8FlOFZUEbZuRRW8c3KGvnkgqcZS8=; b=oQxLrFIrbVPudYNJwa1Wc0yV3divGAlFH553zEQP1v4ScOdGVowk0WDP13n465eaakc+bP ihoMro1KmwgwwLrvDAq5AUuH64HZ0aWkHn6KSun1o9rEvYHMvqo2jnrc+qKEexOAwYE8H2 mHdMT9qBusXWIFUtg0A5BKr81EK4TpOfaNc40kBtw11bY8z9WZKIiH1OBFJl0baIbSjkVh R8/6xjnc0oxAzPqo60UjQMxe9hW0nSWfbi4z7T/PgC4tjPkjhvRmqmjto3b4b4ijsxd50e wLuJvxM3OA+8iFOWA/ht9wCAlqdP9oaCyRTUoiuE4ZScgRViDO0LoykJKJHKOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640853476; a=rsa-sha256; cv=none; b=Yd4VbxGZxAxtLDafRrSFHY+7/dGfDfLHBoxu5OWkdC0Xs32pnPebfzNX57KTONvnvZFidn tRwk6vvgo44kr6v4BIH1Au6zKX2qOJt9qV8g4Jion/O+byTnf7/0U1jNZLZnI6OyUY3deP foZ+Mj8OTdUp9fk1yfDmBZ24xKgcLscV5x1yb0YbxzzljzJRREpUxn4L6W6puYsHBcGDls GagmaD2yXvffsl+Sn2IEmTItKd+uq4gw9XGw4Bel3okeFB8Rc5mC7IjaM5ro1Mi2v0bZyd ZBgrxBVOiJGi3z2IGGRhscEkvDndUMHB8XONk/ody+EGClAQdwqgjaszjZNopA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=N+4TTxtl; dmarc=none; spf=pass (aspmx1.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.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=N+4TTxtl; dmarc=none; spf=pass (aspmx1.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: 7888A29766 X-Spam-Score: 0.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: CesWKmkK/6Nl * 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 e6e25f036a..fa9498e31e 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1215,3 +1215,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