From patchwork Mon Dec 13 06:01:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35194 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 4D36827BBEA; Mon, 13 Dec 2021 06:08:45 +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 160C727BBE9 for ; Mon, 13 Dec 2021 06:08:45 +0000 (GMT) Received: from localhost ([::1]:48714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweVw-0007XN-79 for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTM-0005MM-UI for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-00083G-Ib 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-0002iC-DZ for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 44/45] gnu: Add node-serialport-stream. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Dec 2021 06:06:04 +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.163937553310333 (code B ref 51838); Mon, 13 Dec 2021 06:06:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:33 +0000 Received: from localhost ([127.0.0.1]:53847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSq-0002gV-QA for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:33 -0500 Received: from mail-ua1-f43.google.com ([209.85.222.43]:39575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSi-0002fq-Gq for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:24 -0500 Received: by mail-ua1-f43.google.com with SMTP id i6so27299577uae.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:24 -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=klMSCld2txBYfd9z2tw2McgEXAtJN8Za0v6/7p+14xc=; b=kkogEC0svPAwnL8zTp2EL8lzNspmxnxnU37BmqSXS6c6ddPvu6/QwtiRi0Bh5IOBVg sD0Xkq+If2eY7Wg/YMpaqZtFnALZbWT8QzSFfPWfa8Om5Ebsg/GjXIBVAqLJiD6b99kg b3L1p/R8XknZ0BEIq69gNd9Nx0zuFeqKmBsfEcWTUTb1/iMGJVqnrj6rtyjIRePRKYrG js5jz0h4kqTay9cikIPGTeJxeEn5mYE5doc85iml3wm5u86NKf/P1xs/Qz47YOUhCyc9 HXRDkQz6tZP82eXSoWcfRQ5SJ7tHPpWgWiAMWSE1QfY2k8odD9/CWkQjYtpXbYkRhWQ8 RgmA== 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=klMSCld2txBYfd9z2tw2McgEXAtJN8Za0v6/7p+14xc=; b=8KcwNj6piSm3iPPiWY57CEc8DEC7DHUIvdYloFXlbbNCka/7eQe7xrxTJqTFk0aMwb P4/rmveZ55ZCAcquX/iqaRxwgOAxS3ggD+1EupDX4NABbW/b0MAtxy4IBs+QYl3OQfNp jXnRybxcV3Kw9hjIMiS75seOIfGbxIgf/cqxvZC95Auqa/MORDniARPWWpGhAQitn3l1 G33tbABSjWeqI88bFfno+AhVtPKf6RWSLe2XelUec4eFdnLmT7m5qqY5hqAKXt4KHNjZ 1qfDYMkqKF3XjXUgll8Rowdk2mVz7Qda19tnjiZxq85yEnwLkRcFXbT262EkwK3BMJ2M 60Bw== X-Gm-Message-State: AOAM533CbTwUaWSMt3GtPKvA7Icy7dTJZKsujq/rOMOZ9fbghnfxDC2w Q+WeHm15q8Jjx7503/ZMNzPD4anLs7RfePwaxME= X-Google-Smtp-Source: ABdhPJymunzTpAM3d7UZR/jnC99EX236fg/qw6CsCfdC4nMt3TrnIInRhT4/jZrF8FayFW6sXAG58Q== X-Received: by 2002:a67:db13:: with SMTP id z19mr25887900vsj.4.1639375519096; Sun, 12 Dec 2021 22:05:19 -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 i1sm3697637vkn.55.2021.12.12.22.05.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:18 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:06 -0500 Message-Id: <20211213060107.129223-45-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-stream): New variable. --- gnu/packages/node-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3a4d155b02..271082ce5b 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1231,3 +1231,30 @@ (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 + `(("node-debug" ,node-debug))) + (arguments + `(#:absent-dependencies + `(;; devDependencies + "@serialport/binding-mock") + #:phases + (modify-phases %standard-phases + (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.")))