From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IN7yJ8dR2WEIXAAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 09:56:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KEwqJcdR2WFEhwAA9RJhRA (envelope-from ) for ; Sat, 08 Jan 2022 09:56:39 +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 aspmx1.migadu.com (Postfix) with ESMTPS id 465414345B for ; Sat, 8 Jan 2022 09:56:39 +0100 (CET) Received: from localhost ([::1]:35562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n67Wg-0004HV-DV for larch@yhetil.org; Sat, 08 Jan 2022 03:56:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n67MS-0003nh-F5 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n67MS-0004cn-6h for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n67MS-0000vJ-63 for guix-patches@gnu.org; Sat, 08 Jan 2022 03:46:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v9 23/41] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jan 2022 08:46: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 , Philip McGrath , Pierre Langlois , Liliana Marie Prikler , Leo Famulari , Jelle Licht Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.16416315343359 (code B ref 51838); Sat, 08 Jan 2022 08:46:04 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Jan 2022 08:45:34 +0000 Received: from localhost ([127.0.0.1]:46372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Ly-0000rz-6o for submit@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:34 -0500 Received: from mail-qk1-f178.google.com ([209.85.222.178]:38472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n67Lp-0000rK-24 for 51838@debbugs.gnu.org; Sat, 08 Jan 2022 03:45:25 -0500 Received: by mail-qk1-f178.google.com with SMTP id i187so8510333qkf.5 for <51838@debbugs.gnu.org>; Sat, 08 Jan 2022 00:45: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=+xtycBiRVjgB2UA1K94Is0xR+gS/nT8DNKtlqbV/dT4=; b=kbCzUbkTEA4NEuSMj0XdbqiuARP3xSBn4qDDG/TZlBDfuqK4iz8mQLxZioDjJF6jC9 bt3X6YXS96NUK8oeGhLtKqfs/afGnSS6q6s9PjXKYkAOqcKVe/AODPLKAdQSpSQADMl6 z8hDHNGfB23xZLfafOb804NDvmee/8MbOUFTZNME9cdIEaCyyGdxNnK1Yqkzwx1OfsQ0 kalKin8JJs5+LjVb6gSgDP9eV5+JTsGXil+WjQMvnv8GSgL/DBHSKQsJul0fs3VDIPXo DSCBibX0Pva3FOIaQr8chr4Ueo6OQnBoag+M0O9nbjYqk4MVSXX/ap+DM+C8LV2n+0v8 XfhQ== 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=+xtycBiRVjgB2UA1K94Is0xR+gS/nT8DNKtlqbV/dT4=; b=hCgwjCzdYtL/RYmF4dCwLUP+j2IBOJ3HCZFt/Aq5LrmoKYwv9ycNVzb3AKzC4PS/gC O6rdKLxwmA6XUINm9JZj1Guv6lA7dCWp5LJRIO1Ooh7rZPqkNFzGbRgShyOTU1dhBlI3 hSP0ari4oTv1E1ynIP5VfvSj8+cU/2j2UoauXtOAsKvhB24oShS6/pKyirTLmyCEbip7 opWh/Y/Jq1+ArDGmAEdBm6BEao6Z3RSvLrUiBHU4R7JKVqxvd7B56sZCuSib1Mf5II1x WobaHQnZEYAktCqn4hGtrEXnCfViO7q2DJVU3MWAUmmE8DLtitu0/45MkqoK77+6dnQf NFTQ== X-Gm-Message-State: AOAM531FVVS0lTGKI+MfotjeSB0hQi21zp9gAlB7MQ2hZsqz1BXJ19mI 3iW5CNBD0uK+Ccjh1zC0bfaMrLAV0TzjgiXs X-Google-Smtp-Source: ABdhPJxM+nYIfVqyfdL+DOUjtemFboQYT6wNoWsADt9V7wL3Qp0ya2ryowD2qA0rHFfZrV+LPYbDig== X-Received: by 2002:a05:620a:4481:: with SMTP id x1mr46359702qkp.423.1641631519501; Sat, 08 Jan 2022 00:45:19 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id v20sm680499qkl.123.2022.01.08.00.45.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jan 2022 00:45:19 -0800 (PST) From: Philip McGrath Date: Sat, 8 Jan 2022 03:42:11 -0500 Message-Id: <20220108084229.362642-24-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220108084229.362642-1-philip@philipmcgrath.com> References: <64e08d3a1838ed8507f33fae895545372960522f.camel@gmail.com> <7b04af28bbd57c67093ce8f33a648efec89693bd.camel@gmail.com> <441bfeb0-eb6e-81f6-488b-cdf1b09a78ef@philipmcgrath.com> <20220108084229.362642-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=1641632199; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=+xtycBiRVjgB2UA1K94Is0xR+gS/nT8DNKtlqbV/dT4=; b=VGCuAI1MWnwbA95kl3GBjaaeCioBP9sv7wMo43my8AOs8yeJmqdt98gxJ7gldDz9JnqRSt no6w/PF98k1z608PfEq9OfAT9spxjrIxz9o4WunuOwD8ycJE+9aqW2sPZWMBF5Owz5u+2a kjuwMjTyoIFT0vGHM7XxB472h896CGuiOCrBSEzu7/vuA86zCwuk8VmMFPrC8wvjX3tfUj RS1wxrGt7NCjIFDM7ER2Jeh3oAGPcsy8aynByjblS+TFEDtMD2x+2gCxmKo9Hw9MvahBHC hMFfjVWJVT7+X8WcC0f621sqm1IFIbC18JLtGjeIq8AG2R5l+YGydenp3NzoZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641632199; a=rsa-sha256; cv=none; b=YrSRfeAsb/4D+f1gl7ekxQZ+OmWAbnPZJudF9FUhfcH371eoMdieIXLkKdVO2qMaNovbuo sMHGz9Amh5Iw0dzsq/RCFs02YNWqg1JqPrWS01cayFZ7nHCNUG7r3CPng7GrlxyS9Kf1JB 27SoUwY9FcgZ1kaT9bvVUxWhl81aFJupTeKHWzXIroio4EG9tEeClQ4N4oM+nVCILJ0xxL TfCWtlmyWlnULppuSIwgYXKQddMUwugNMqOZaEYUaSZm9QQXZvfgVWxBvvICmuPydIRO+9 9biXYa/k4Q0s/CBRegI2l+RPdRjyyd17FOba3mCcmoHzwDppvj4gG70z7n4Gvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=kbCzUbkT; dmarc=none; spf=pass (aspmx1.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: 0.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=kbCzUbkT; dmarc=none; spf=pass (aspmx1.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: 465414345B X-Spam-Score: 0.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6nwM5qZWYg5i * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 4d8286e334..3e99bd7687 100644 --- a/gnu/packages/zwave.scm +++ b/gnu/packages/zwave.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Ludovic Courtès +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,11 +22,14 @@ (define-module (gnu packages zwave) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix build-system node) #:use-module (gnu packages) #:use-module (gnu packages base) + #:use-module (gnu packages node-xyz) #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages perl) + #:use-module (gnu packages python) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xml)) @@ -85,3 +89,63 @@ (define-public open-zwave and respond to devices on a Z-Wave network, without requiring in-depth knowledge of the Z-Wave protocol.") (license license:lgpl3+))) + +(define-public node-openzwave-shared + (package + (name "node-openzwave-shared") + (version "1.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenZWave/node-openzwave-shared") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1bqqy12dzqj05j9wsh50dmn84dddmhz0gjzvd3y20z4hpy1v8rsc")))) + (inputs + (list open-zwave node-nan)) + (native-inputs + (list which python pkg-config)) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + ;; For some reason, `npm install` doesn't build + ;; the addon automatically, so we do it explicitly here. + ;; We go through `npx` so the npmrc file sets the + ;; configuration up properly. + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (invoke (search-input-file (or native-inputs inputs) "/bin/npx") + "--call" + (string-append + (search-input-file + (or native-inputs inputs) + "/lib/node_modules/npm/bin/node-gyp-bin/node-gyp") + " rebuild"))))))) + (home-page "https://github.com/OpenZWave/node-openzwave-shared") + (synopsis "Node.js bindings for OpenZWave") + (description + "With the @code{node-openzwave-shared} package, you can easily control +and manage your Z-Wave devices (lights, dimmers, blinds, you name it) from +within Node.js applications. This library also supports secure +devices (e.g. door locks) that require encryption. All widely used Node.js +versions are supported with the help of @code{node-nan}. + +This library is currently able to: +@itemize @bullet +@item +scan a Z-Wave network and report on connected devices; +@item +write values to Z-Wave nodes; +@item +monitor the network for changes; +@item +heal nodes and/or the network; and +@item +perform management tasks: add or remove nodes, replace failed nodes, +manage their group associations, etc. +@end itemize") + (license license:isc))) -- 2.32.0