From patchwork Mon Dec 13 06:01:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35196 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 7466427BBEA; Mon, 13 Dec 2021 06:08:56 +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 3A5FC27BBE9 for ; Mon, 13 Dec 2021 06:08:56 +0000 (GMT) Received: from localhost ([::1]:49314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mweW7-0007y0-Df for patchwork@mira.cbaines.net; Mon, 13 Dec 2021 01:08:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mweTN-0005NR-9x for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mweTM-00083X-Uk 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-0002iJ-Q0 for guix-patches@gnu.org; Mon, 13 Dec 2021 01:06:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v4 45/45] gnu: Add node-serialport. 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.163937554310354 (code B ref 51838); Mon, 13 Dec 2021 06:06:04 +0000 Received: (at 51838) by debbugs.gnu.org; 13 Dec 2021 06:05:43 +0000 Received: from localhost ([127.0.0.1]:53849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweT0-0002gv-8j for submit@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:43 -0500 Received: from mail-vk1-f173.google.com ([209.85.221.173]:39878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mweSm-0002g0-Fs for 51838@debbugs.gnu.org; Mon, 13 Dec 2021 01:05:32 -0500 Received: by mail-vk1-f173.google.com with SMTP id 84so9694341vkc.6 for <51838@debbugs.gnu.org>; Sun, 12 Dec 2021 22:05:28 -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=Uj8l1PwC5yonT22mdkT7rXciKsL3hh51MxZpTdJB9d0=; b=Hab3bwd2B9mUzV0rQ8iDXqDBKMvRRT4U2yscWIKBKlsTtQNkE7yAO4jWDBySfVCjog qPCGAU5VvEfXL5jjDzw1zsR2wAIenJ5J5eg9CuKJTgApHAgowl34Cb0Cm6unKRIXIf+u mV+81CKWG1BpxAQnTehrd0pZIiFZtkn1j6pYI9PNjIVfsHslivl2U59npPxAejusyxyi lW5kSgGzIJaXLewY7868ixrMbAjRcCLD5MqWOgI83Y3wWOgEhhOyeVujReYEvF/rf+tu NgzG2/53QoDTcEcIfTB3P1VZki7HXZdBebnc+CuIaJtQApQTBFnIQ/mNhzWLa3OgStZW jQ6Q== 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=Uj8l1PwC5yonT22mdkT7rXciKsL3hh51MxZpTdJB9d0=; b=AiYlpgUtDaVpN6U0CD02xbq6wbH2PTp6+19I8kzCxMTnn7X5/SimuiAr5MVbFt+0lW UvUXQU2t0i+zMccq2Ly+lqLA/vmTd7Tla5ERu0odsd6AdkzC3ihuQYQtFQRR5zws568j 6jzs7g7h6uEK1q/jcJqvNOqL8FHWyo/bXZ9TpE5/noqeU1mtTpwAfqX5WWsmH9HM6YCd GQ1H7HqCEEz6jfvWeClkM9DYvGKbDPjgQWhtvUave7qkQfzBmG2yZpYPZwBCaRwBVr/z trvPASRh267Q0EBvQuw+i5MEXg75jXyoyfKqADp2Cpzp9fWx/IyOULzrCeCYMP0nZc9T KXLw== X-Gm-Message-State: AOAM531fiEtghYa/jQYPWw0GQvGIwRpwRW6dSHO3cXrY12ghwpEcDyAu R2zagYhmEaMs00W3MWpuegEah162QxNeE+MBAF0= X-Google-Smtp-Source: ABdhPJwpi6aJV10FomoR4bN0zzXVoX51ufDL1hlpBOdJKBuCrAwCTqKSAYYoocNpbLnGPZIjzvFdyA== X-Received: by 2002:ac5:c183:: with SMTP id z3mr30257065vkb.20.1639375523101; Sun, 12 Dec 2021 22:05:23 -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 x142sm3662660vsx.15.2021.12.12.22.05.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 22:05:22 -0800 (PST) From: Philip McGrath Date: Mon, 13 Dec 2021 01:01:07 -0500 Message-Id: <20211213060107.129223-46-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): New variable. --- gnu/packages/node-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 271082ce5b..92e16f2dc6 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1258,3 +1258,36 @@ (define-public node-serialport-stream Node.js Stream API. The stream is a duplex stream, allowing for reading and writing. It has additional methods for managing the SerialPort connection."))) + +(define-public node-serialport + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport") + (version "9.2.7") + (inputs + `(("node-serialport-bindings" ,node-serialport-bindings) + ("node-serialport-parser-delimiter" ,node-serialport-parser-delimiter) + ("node-serialport-parser-readline" ,node-serialport-parser-readline) + ("node-serialport-parser-regex" ,node-serialport-parser-regex) + ("node-serialport-parser-ready" ,node-serialport-parser-ready) + ("node-serialport-parser-inter-byte-timeout" + ,node-serialport-parser-inter-byte-timeout) + ("node-serialport-parser-cctalk" ,node-serialport-parser-cctalk) + ("node-serialport-parser-byte-length" + ,node-serialport-parser-byte-length) + ("node-serialport-stream" ,node-serialport-stream) + ("node-debug" ,node-debug))) + (arguments + `(#:absent-dependencies + `("@serialport/binding-mock") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/serialport")))) + #:tests? #f)) + (synopsis "Node.js package to access serial ports") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. This package is the recommended entry point for most +projects. It combines a high-level Node.js stream interface with a useful +default set of parsers and bindings.")))