From patchwork Wed Dec 8 20:28:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35052 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 D50A227BBEA; Wed, 8 Dec 2021 20:32:35 +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 9570727BBE9 for ; Wed, 8 Dec 2021 20:32:35 +0000 (GMT) Received: from localhost ([::1]:50826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv3cA-0002Ts-MN for patchwork@mira.cbaines.net; Wed, 08 Dec 2021 15:32:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv3a1-0006oF-Pk for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv3a1-0000eK-BX for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv3a1-00063Q-5R for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 42/43] gnu: Add node-serialport-stream. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Dec 2021 20:30:21 +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 Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163899539722947 (code B ref 51838); Wed, 08 Dec 2021 20:30:21 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Dec 2021 20:29:57 +0000 Received: from localhost ([127.0.0.1]:41661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3Zd-0005xx-B3 for submit@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:57 -0500 Received: from mail-vk1-f176.google.com ([209.85.221.176]:42685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3ZE-0005ud-Jd for 51838@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:32 -0500 Received: by mail-vk1-f176.google.com with SMTP id s1so2355849vks.9 for <51838@debbugs.gnu.org>; Wed, 08 Dec 2021 12:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=oPU4ndsUbmtQOBr2D9ylm4Plrszvgo++q4KBNhSDWv4=; b=QG3Jsj+4vlK9JMOvdhpsrVGOL3umWjRnbYJJgaQf2vpyFEfcCUpFlnIy2u260mAhSd Zq23O3p783RLXKag91h0l2nsBAjKhjt7P9V/lwlz0mymgsg1PDshuT1ROGlofHITzXBs 9UXdnPJhtF+ocwKtjHcQ2rXpD1Bnuqg+N62/HCIA45mm7ij+s7k0Jo4jirgHpto+IODG umS97YLWf3DfRRuQUFvCteUJdMAyLNxaOsy66/M80Fx2pjnAsbic7tMxo8TNtyyVCa6g 47j3lPlPLGYOf9YBczMiW9vaWMkfsA0RLpiUsKBuivVtR8hC68uX2qYvPSd2dHoDsG2h C5nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oPU4ndsUbmtQOBr2D9ylm4Plrszvgo++q4KBNhSDWv4=; b=RVUawIc9JcUiONx/T5eZCMp6A/hpZZ+i45EVe7MCZy6he9zd/UZHTyJ9lKu/Dh/umT 1ZG0cqnNyE4edaNHVx0Sps9tB8ocKYYOFH5MA9T2fSZappjzLiShmD/E3AANkltkDFkG DFEGqxSAxOcEq+GoVJfuIzrqv4bKqfw7DXK2/Ntn08d24NGjp6InF4dIDk+zbyeelhd+ 4ueC8hP6c5v8bplPMoPiR3+BKPjmsP3QtMf4wmOymRSGPl82MpDhlaF2Irc6nkoRkJ1N 6xdPRmJ5K/J4E6mDSMICLBctMHqNcoglgDs0QSRj3TIkuj62vLuKkj0rwoxkyp+KXE+y q9rA== X-Gm-Message-State: AOAM530g9St026mjvz5PWLPOxbwLFdBBu5H4tTPSzVbPglKobqERmWaR qh1YsHB6c9SrxEVZXxG06ZtVS0N/nAZgKyFhvxU= X-Google-Smtp-Source: ABdhPJwPxNfKRKoifT5pbPCB27RVrnJBxikCxPUmZRJU7RfBHhEEEE3NEU1PB+Qq7dcnqrVL7GrxQw== X-Received: by 2002:a05:6122:98d:: with SMTP id g13mr1228010vkd.15.1638995367118; Wed, 08 Dec 2021 12:29:27 -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 p130sm2512416vke.56.2021.12.08.12.29.26 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 12:29:26 -0800 (PST) From: Philip McGrath Date: Wed, 8 Dec 2021 15:28:37 -0500 Message-Id: <20211208202838.752542-43-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211208202838.752542-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 3722f90e3b..904c0be89d 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1133,3 +1133,29 @@ (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") + (arguments + `(#:absent-dependencies + `("debug" + ;; 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.")))