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 oE2KCqs012GoMAAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:27:55 +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 MOkWB6s012G6gQEAauVa8A (envelope-from ) for ; Thu, 06 Jan 2022 19:27:55 +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 AC6EB60BB for ; Thu, 6 Jan 2022 19:27:54 +0100 (CET) Received: from localhost ([::1]:46228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XUO-0002Aj-IU for larch@yhetil.org; Thu, 06 Jan 2022 13:27:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XSp-0007U9-IR for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:16 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49391) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5XSp-00014u-9N for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:15 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5XSp-00058R-5X for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:15 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v8 34/41] gnu: Add node-serialport-bindings. References: <20211114124151.36743-1-philip@philipmcgrath.com> In-Reply-To: <20211114124151.36743-1-philip@philipmcgrath.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 18:26:15 +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: Philip McGrath Cc: 51838@debbugs.gnu.org, Timothy Sample , Pierre Langlois , Jelle Licht , Leo Famulari Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164149353419400 (code B ref 51838); Thu, 06 Jan 2022 18:26:15 +0000 Received: (at 51838) by debbugs.gnu.org; 6 Jan 2022 18:25:34 +0000 Received: from localhost ([127.0.0.1]:42257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XS9-00052h-8n for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:25:33 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:43940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRR-0004vn-AA for 51838@debbugs.gnu.org; Thu, 06 Jan 2022 13:24:50 -0500 Received: by mail-wm1-f68.google.com with SMTP id o203-20020a1ca5d4000000b003477d032384so27211wme.2 for <51838@debbugs.gnu.org>; Thu, 06 Jan 2022 10:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:cc:content-transfer-encoding:message-id :mime-version; bh=ABPA0ycs9p/SHte9yUgu9yisJLfHtfeLPPZ9c3Nj49k=; b=MOiHbZKmLo2Wwv0jgtmrSERF/GCJeea7c2S7rJ8MT8RqQlEIzthx06mqJuvkiM7yXq Ls/FZZ72H2cRUoTBjtw2uW411J8PWDXexnMYDeGDY0vlfBnEszlrxVfbieehsrgHuHYd JyIRSi/ehglbIqeD8ppyMir/5/ZUm4f9vC6gT8LXA/PeavsBrSXEzkiPTYD5H5432NWL Pk+IqXAlZF3rux4yo/n0x9yXm8aa/gB9uS0JP9lTdR4FuY/O9985DiR5SOgQ+7gQpxf3 xP6Enk0G5BBKgr8321EKXxp5VLXLZG2npwuaXqX7dQEJSNGmTuIk2VSPgg8wdZaDdfJB 9KOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:cc :content-transfer-encoding:message-id:mime-version; bh=ABPA0ycs9p/SHte9yUgu9yisJLfHtfeLPPZ9c3Nj49k=; b=cCmlilqrWktaMK6ch97F8nSp6HQU8L8VmesO7M3rqKjYboqsH38Z8L5YU60AmHfaof 2pEVLY3WrE69WlPEIeJN5lV8N1jzbjhgLaLHPfhRYaHtjGSZ2FPgnTz2bL9pilk2SfLb Mf2n2VF77xUa1pO6tetz0SzFdnrQkfGuZLVjmQ3tHklyHdZDOE2yw5DG7W0IVwrlvnJp xpuk7DLNSkaiBtW6zhm/a0apR1CbVY1X8bjIqVCOqRqL1SlQbMYeHFy8bVGNBrZidJMr XTkI5Wt2gve3P3NQXCIccC6/2kKeCre+PSgVsUyT76kmeFyfXIGUZeS+64/uQPzAfr5d MuFw== X-Gm-Message-State: AOAM533KsqG98piP6KUYoCDLfCZh2lp94Ip3w+wq8FNF9BFaKh3Szcek s7QGKbBAA+hYVNP/Sz63FZU= X-Google-Smtp-Source: ABdhPJxObZb5Dln5ddPcAgFD04Iki4WCgJ/yWRqIFRGd0iqO/EB4dZUwnWECQEJ12PWMwwvW1Co1Lw== X-Received: by 2002:a05:600c:3b0f:: with SMTP id m15mr1619352wms.4.1641493483816; Thu, 06 Jan 2022 10:24:43 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id b17sm2693311wrq.91.2022.01.06.10.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 10:24:43 -0800 (PST) From: Liliana Marie Prikler Date: Thu, 30 Dec 2021 02:39:12 -0500 Content-Transfer-Encoding: 7bit Message-ID: 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+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=1641493674; 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=ABPA0ycs9p/SHte9yUgu9yisJLfHtfeLPPZ9c3Nj49k=; b=n5gr7G7/oWRrzCqNIeghbG7m4MLBKlmJ2Lq1aUKvuvb/yqm9wreJ7+g7/tGMzBmGqnTk3P kZXbrHyODaoq6z8yMZi0GSvciiaMG8ePQ3K2+32//xvPoCd0yg2uKwOfdE8GD6LkD7qEd2 bpaKzHlpB6o1UfqYR3H972fOxjYn5FuXsifOBeYELvjEWD/HsJUR/laCwwro0nmCm6gOg5 CJcAbKAO45kZIZkIH8ez3v57XcKD1C7nTSuJHIUTtexWM3G9wHQBRNlolJUJikQnISNowa AY8nlVIJkBWT7C12mEmrX+S4/hXQ9rOcKa4liVJB0+yGrOhAIlRxjQXqNw9PdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641493674; a=rsa-sha256; cv=none; b=DOgOp0TG+CGn+l+3WLFNGRW6CotVr3NhlBlJkkm3lW5GlRwdCcomJOsDtLTrr05kYz7jFp dvY8dwgmhXfjIukds0Bv6DILgSIUY914Q23I3PN7wAj+wz8MmTLlW4NONyhQhaYkShWMUk AGl1Z0xwPq/QHwR2C3idUpijx4FdvYcnTBS5okcsEpXeGfJBfx8TJkb+QCQtKIXlThI+Nl BLEu6QmKkHTIpsIrcl4vamHGiEEbAwHxGAQlxCTUaCm9h/Vg9WTmH6e1L3coTVW/QXIgvT lfq1o7E8nju1Q3RNYOxQ8SX33za8RY14NCHR4K96RMMnfyrn/S3Vh8BJ8uJnwg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MOiHbZKm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.00 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=MOiHbZKm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: AC6EB60BB X-Spam-Score: -1.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: h7k4TD/ovrJr * gnu/packages/node-xyz.scm (node-serialport-bindings): New variable. Signed-off-by: Liliana Marie Prikler --- gnu/packages/node-xyz.scm | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index aa3ec31718..3128b1f7f3 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1085,3 +1085,57 @@ (define-public node-serialport-parser-readline Parsers are used to take raw binary data and transform them into usable messages. This package provides @code{Readline}, a parser that emits data after a (configurable) newline delimiter is received."))) + +(define-public node-serialport-bindings + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-bindings") + (version "9.2.7") + (native-inputs + (list python)) + (inputs + (list node-nan node-bindings node-serialport-binding-abstract + node-serialport-parser-readline node-debug)) + (arguments + `(#:modules + ((guix build node-build-system) + (srfi srfi-1) + (ice-9 match) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/bindings"))) + (add-after 'patch-dependencies 'delete-dependencies + (lambda args + (delete-dependencies `("^prebuild-install$" + ;; devDependencies + "^@serialport/binding-mock$" + "^node-abi$")))) + (add-after 'chdir 'avoid-prebuild-install + (lambda args + (with-atomic-json-file-replacement "package.json" + (match-lambda + (('@ . pkg-meta-alist) + (cons '@ (map (match-lambda + (("scripts" @ . scripts-alist) + `("scripts" @ ,@(filter (match-lambda + (("install" . _) + #f) + (_ + #t)) + scripts-alist))) + (other + other)) + pkg-meta-alist)))))))) + #:tests? #f)) + (synopsis "Abstract base class for Node SerialPort bindings") + (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 the @code{Binding} class, which uses a native addon to +talk to the underlying system. You never have to use @code{Binding} objects +directly. There is also a @code{MockBinding} available (but not yet packaged +for Guix) to assist with testing."))) -- 2.34.0