From patchwork Fri Dec 17 02:03:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35335 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 3FB2527BBEA; Fri, 17 Dec 2021 02:08:52 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 063EA27BBE9 for ; Fri, 17 Dec 2021 02:08:52 +0000 (GMT) Received: from localhost ([::1]:58542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my2fz-0000Og-5G for patchwork@mira.cbaines.net; Thu, 16 Dec 2021 21:08:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my2fC-0007II-5v for guix-patches@gnu.org; Thu, 16 Dec 2021 21:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1my2fB-00008i-Sy for guix-patches@gnu.org; Thu, 16 Dec 2021 21:08:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1my2fB-0005KI-O9 for guix-patches@gnu.org; Thu, 16 Dec 2021 21:08:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v5 40/45] gnu: Add node-serialport-parser-ready. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Dec 2021 02:08:01 +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.163970685020395 (code B ref 51838); Fri, 17 Dec 2021 02:08:01 +0000 Received: (at 51838) by debbugs.gnu.org; 17 Dec 2021 02:07:30 +0000 Received: from localhost ([127.0.0.1]:37419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my2eT-0005Id-QG for submit@debbugs.gnu.org; Thu, 16 Dec 2021 21:07:29 -0500 Received: from mail-qt1-f182.google.com ([209.85.160.182]:34418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my2dn-0005Eg-7e for 51838@debbugs.gnu.org; Thu, 16 Dec 2021 21:06:35 -0500 Received: by mail-qt1-f182.google.com with SMTP id o17so1229334qtk.1 for <51838@debbugs.gnu.org>; Thu, 16 Dec 2021 18:06:35 -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=MANI+P1V6aIvWuTttSdTfkiq7sPZjR+VpUELrJfPqdc=; b=UP/rODxbYoTLp5dAyxWTZAb7UrLOMytbKhlxz2fVDVFoiSNyY0SlL2NTwfxV2m9BPS LI2T+pi6uXAXxWKS7K2SBMcCeMx1eNM5egkiDlj8iwvoov8gs1J07gB2Z1q2brphap9I TOxx/0ucGymZIpRiBckx3vZCAvgcoR+QdAYaBWOq29Mb03gCx84LU72A3b6F9BWVyqeE QVPoSFqPk1PLw0N3ekla2UjHw7M9YRYzn0DZfeqYVNnjB2SBPAyAq/eSZggxrnt3QwOK 6aovMtMSZ0ybiS8O4tPNLYRV++7GPr1lKagS4Ic0uultxOQFwbnBGKmVFF5n/ZPQEhl2 V1cg== 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=MANI+P1V6aIvWuTttSdTfkiq7sPZjR+VpUELrJfPqdc=; b=iSZLQUtMrRnAzWya8LIz/VWO/HhL1J6e16mEbnFfak0ikrbs2i6Dm7SFD1MQcPY4Uj kpBa3fuDGI8jv4fTVfnjEvMmP2pvzihoZVHiEaNjoiV64mHq5N4VZSittTgyHVM3+OTK 3ZNQ2THzpKXG8AWrCyYtKZcZSbPDSYw5jWYzYKyO7AkOrSdlGM/OblZk8MoiesQXSJen P+d6HcJ64eO0GfjA0h9gawqF2ff5GXMN/HfEWYYGwuB1S/jqjJGcCYzfPBbjdedHZV8m IPv+hQB+YsEjIHT6eJLTBcQeAyDe71TF3ERluUbLi3eLHEELR+/fsw7h5+kTid/sy1A5 OtKg== X-Gm-Message-State: AOAM530Ac9L+zN2kbjtYvtup9lap4lrIWD7uc80SBp0nwk2yQuKNMjxD iNhrekH5f+5oUXqZP+BLR51CZ7L+rjzydj8rfLo= X-Google-Smtp-Source: ABdhPJyv8tqrcJ+T7gakUD8ZBBoT7HOUbbwO6qvYGawyAk9W5noynVOJIFReZn/IFk+or8TmyPYpgQ== X-Received: by 2002:ac8:5e08:: with SMTP id h8mr734248qtx.204.1639706789873; Thu, 16 Dec 2021 18:06:29 -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 u27sm6003758qtc.58.2021.12.16.18.06.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Dec 2021 18:06:29 -0800 (PST) From: Philip McGrath Date: Thu, 16 Dec 2021 21:03:20 -0500 Message-Id: <20211217020325.520821-41-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217020325.520821-1-philip@philipmcgrath.com> References: <20211213060107.129223-1-philip@philipmcgrath.com> <20211217020325.520821-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-parser-ready): New variable. --- gnu/packages/node-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index be96a00a37..412bb0a3bb 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1129,3 +1129,26 @@ (define-public node-serialport-parser-regex Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Regex}, a parser that uses a regular expression to split the incoming text."))) + +(define-public node-serialport-parser-ready + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-ready") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-ready")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to wait for specified byte sequence") + (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{Ready}, a parser that waits for a +specified sequence of ``ready'' bytes before emitting a ready event and +emitting data events.")))