From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 0FG9Fi9kzWHZyQAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:47:59 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CJ09Ey9kzWEkgwEAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 08:47:59 +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 28A511EB37 for ; Thu, 30 Dec 2021 08:47:59 +0100 (CET) Received: from localhost ([::1]:33118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qAI-0004zI-4R for larch@yhetil.org; Thu, 30 Dec 2021 02:47:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q9P-0004Al-4x for guix-patches@gnu.org; Thu, 30 Dec 2021 02:47:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q9O-0005rw-R8 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-0006ty-R6 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 40/41] gnu: Add node-serialport-stream. 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.164085040426401 (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]:51121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q96-0006re-2P for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:46:44 -0500 Received: from mail-qk1-f174.google.com ([209.85.222.174]:46655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5y-0006fp-8C for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:30 -0500 Received: by mail-qk1-f174.google.com with SMTP id 202so18259343qkg.13 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:43:30 -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=/GhSor8PLUI3l9NcM7DoxWwzAF4Lj8DTZRosUFdpbag=; b=aqqBMdeGiu76meXcQRDF5HpiidBHSCmOHuCi8e2+klw+jeHbl3TpmSmI9yPovlKRpx aveMRPXFUW2XN+5+D2KZCbUxACEqUCErMjHIgUxYV4cg7YZQCG3l1sZWEbVWUdaqoAze WCku9edI7ux6yEVRVyPYRYdqKKok+qniE2oNN5XYLaACfBgvyq5x1Quka6vVDK5Q69tj FUF9yWtdl9xmUAewp38VuKwdfv5Fghw6vLTRwKOG2VvOzNbaKi5ZA9SiyUU/JTIfRUdc 88YkATys4pWSJGOlQsXdm6kryJvlxfHfzZA6dSxI175J/0JRu/1bzcywUwrpKAqMz7Qw Z0xQ== 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=/GhSor8PLUI3l9NcM7DoxWwzAF4Lj8DTZRosUFdpbag=; b=XTZ6QoQ6vatclf0i8KLW3LRVu2aNACV7IyxvSOks3Tfluuwc60MBd61KUaptWhJ9a1 kajiVZF7uHN5Q6okQPxmORiqPpvTPGL9hoQaDfQbEUOSMJHICIsHCmoowdjjmsyqM/xy /JKSDi0dCRUexV56D+A4cEkpuy2wKTkwgIs5teMaLQ43vSCQml++sobtjJrt66YlCJjA T6/vHJLapRrNhifudcxFnk8jJlFZG0P5OGnlqNR1C9HcQwedByiHGmioDUNp3/LJa3Rr WaoQvTDN/kRMGffQDdJw11PvDig8KbPNkUFJKEuyZ75wSbudTa3jkU58H6PQm6PX1uTU 0KSg== X-Gm-Message-State: AOAM5308kh0jnifGW+wd8LLbIDrmOB51miCOBdBanfCJUJ0KU1gQZZyO x9NqS/YnlF1we84KNM1LWLFURQfVXiRl6+QI X-Google-Smtp-Source: ABdhPJzn5sVZoJRBq9gTap4nL8YUG7jsLUPUOKlc31i//ER14EG1MP5wgXik7fRVdd7yaVmw6IiPKw== X-Received: by 2002:a05:620a:2891:: with SMTP id j17mr20960020qkp.386.1640850204777; Wed, 29 Dec 2021 23:43:24 -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 s9sm19239017qki.99.2021.12.29.23.43.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:43:24 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:18 -0500 Message-Id: <20211230073919.30327-41-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=1640850479; 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=/GhSor8PLUI3l9NcM7DoxWwzAF4Lj8DTZRosUFdpbag=; b=U394/+sIel9WyCrk4Rsv26/0/SvoO54IFSgmx+NZImjiGvMo5QCLimQnUpY0Hla2ZR/V8O xXpU3WO/3itW6cTXnVeUZ+i5kCrm1syBwAKrlpTRNyjkFp/4VHrc5Mv258p/z5xbM6gRED CcdRUIog9cB4SOjxH4Box09k5we+oYOWtoPC5ceeZbH0SKWcEEAVmrWfjqKv64YA7IiBT6 hTr/6wKUQhwH74oG7I3H5UNPRbtlokcNuxW6IyMDYrFBS65y6eIu7B86J7GH2VyqPtX/xf Lf6autlKbYHTWNSi1TVmSiaJ9EBrFz4b4ICW/cqp8j6SQ5Dip472hg0PsP17AA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850479; a=rsa-sha256; cv=none; b=oQW2TczhZUl3huY0/ublxRifHo9atVct+PHjPbGGZfWEVCm/vreGgHe4hQLRP5VdFfUqGW DnHzwtYl+ZJjoYtNIoqIaGyAPlC+LHKXZPX6ryPaO8EZhCVvX6S4NeP2ZCdJOK3wxbwhmp oC2/ER+S5SX71hOe0RLFVFTv9ZLhKIx5ONew8dTlxo6guZwGrsXI7/KFYnx38KGd2phCrm uAfmhYThM5vbPAUEY0rarRoglKQBZC/mO1kC+6akq4LMMQb9uIvcXX0ynN8WarZTYY8dxS ErqNVFsS282x7vIjCtNprQfqvQ2GmbyYn9NsseILoDh/kkYU+QnYuTpvNOrT9Q== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=aqqBMdeG; 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=aqqBMdeG; 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: 28A511EB37 X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: ni3M4AfwVTKQ * gnu/packages/node-xyz.scm (node-serialport-stream): New variable. --- gnu/packages/node-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index e427f31b1a..a95749f737 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1317,3 +1317,34 @@ (define-public node-serialport-parser-byte-length 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."))) + +(define-public node-serialport-stream + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-stream") + (version "9.2.4") + (inputs + (list node-debug)) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (with-atomic-json-file-replacement "package.json" + (lambda (pkg-meta) + (delete-dependencies pkg-meta + `(;; devDependencies + "@serialport/binding-mock")))))) + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/stream")))) + #:tests? #f)) + (synopsis "Node.js stream interface for Node SerialPort") + (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. + +This package provides an interface for using Node SerialPort bindings via the +Node.js Stream API. The stream is a duplex stream, allowing for reading and +writing. It has additional methods for managing the SerialPort +connection."))) -- 2.32.0