From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uDGOCndjzWFowAAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:44:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cHkZB3djzWG6aAAAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 08:44: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 aspmx1.migadu.com (Postfix) with ESMTPS id 96703BD35 for ; Thu, 30 Dec 2021 08:44:54 +0100 (CET) Received: from localhost ([::1]:57034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q7J-0001oO-Pw for larch@yhetil.org; Thu, 30 Dec 2021 02:44:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q6X-00015x-Me for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q6X-0001lh-Ce for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q6X-0006j6-CR for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 23/41] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:44:05 +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.164085020325615 (code B ref 51838); Thu, 30 Dec 2021 07:44:05 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:43:23 +0000 Received: from localhost ([127.0.0.1]:51044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5q-0006er-5r for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:22 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]:44908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q4q-0006am-Ob for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:42:21 -0500 Received: by mail-qk1-f172.google.com with SMTP id l11so21930347qke.11 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:42:20 -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=A51J9AEHpl1k2/oJaSPqg6sxslvOT0qR9RMlvGbRhr1JHrp08ojmpTTqa5h0vsJ+x2 Xfu9FyGLOHthFCvLhbNyXNWfFVQm4zsEHHcB1jvLAk/jydvPuCclyraLjlVdHo3yRiR9 3AXIUowrkH2KRKn7ZZX46FSd/gR4ZLAIa770rDRxXfVgufpRNvkwVL5FB3PkZW1fAqku WTYlbHMX5f6vwi+HAecbvDk+G3UlVDIn/AiJcRmFQ+caEOVNMDdUvqQEL6CCAWYE+LFe GKQlyYNXQ2PMD5D9AiEFs825W7PdSA5EUPTMbVYHbokRCHOiFzjq0AQeQZPofSSegLAY EJGg== 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=ZCfz2QbaV5CNXycI750+1HRF+qxiQshq4SPjRtmP7hW3GPYI4sFPBZlLuTPDxPRlPg sKqsFw1Nb60a4dYgY3OlmIWwdXUT/2Mz8cJsVJf8db9AYPAH1nhBGW52Mhu/vAjoC+2k Moo3PCdWdlj/dStNjzlKFZlLarh3qMD7hGp6CcWaUkqV8USyDD2UoCrysDmIWUdpWwD+ uHkP3Vj6tQrBmstF+I3blCQWX+fTHJTdgo7OWZFOqpS5Mb5WiHaC3DkyoubKuIvoEZLr yW0Pn0EvEFiy1/T98Akj9VqWVFpOxrC/Koa82kysxrd1bFBqh4a+N8iH0My2sr8YT+iF 2wZA== X-Gm-Message-State: AOAM532V24zap84C8B3Vi+1WZbI9eH0cRNnvFT5g74/G5wx8ShGMT73l 9mq/ZgFVTTi7h/Z9ZubKnGnQA/LLiyK4RIRZ X-Google-Smtp-Source: ABdhPJySGF8zlXGkaTJZaX1dy1ZCgxtJrt4h7wai8sOWXp7uszbjvH7m+1luFhX6J/f5qkTGpT5ZBA== X-Received: by 2002:a05:620a:4414:: with SMTP id v20mr18413728qkp.121.1640850135213; Wed, 29 Dec 2021 23:42:15 -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 h5sm20149229qkn.62.2021.12.29.23.42.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:42:15 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:01 -0500 Message-Id: <20211230073919.30327-24-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-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=1640850295; 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=r1xgd7JfJI89DyIyWRwjQ90Sr0EkXCPtC6wHjO8QVbzfHo1IZ2lZnPIODIAn1D8wFFVa8F QJfT9lZf2Jb9DOohor8oGJNUOLL/NA9iqYrz/cFv67x58Lli8rKXzADT8bemCdGtMjSyTl 4x6EPAQGsVfjkT3c9GvVLNPxdVrvMvAlkRdncIhXYzylIlyyzm+5pwlSrn7r78hZ3iLgNf YlXwRvRDdYb6lJdpl5rYFUzDsy9X5pSoeWAYR1Z0Gz/XwVJ6a4S1/JLngMQZlqtLSut4I6 zJXLvXp1cOnBL3Oq1vK1EawtzRCVZBLSqmmCt6pYm1pg0AqJ/fP5rVwXPZmFZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850295; a=rsa-sha256; cv=none; b=XasuNiix8C8eCCFR3o0utBtc9Tf5QT+DkVgHhhVTQtdADXKH+vKvygU6hh/u37aDtYtGB7 ELR86/7/YwB73x0wRmmZSqc5vMQ44AFDS/vU0rMHy+e2PALxHnItwZSumgHlqnWd6yi7DJ 1L7TrRF73AsPpQIlX0SxLuwf3rP+rD0Pry5OIj01/nBPbWLuj3+XARm7f6fkIwmF1p0ID8 JzTTjjmXqPK/+dmE3U3d+buGpYYqMaUefea+BgNypEXK3r+IFCKR2Zv+ac2VrAw638pm0r s1pp6sGrgqxZ4PiSkUu5ahGc3ckhZXVCmdOr+RUupNXt1ZBglEvOSqzA3U1/sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=A51J9AEH; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=A51J9AEH; 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: 96703BD35 X-Spam-Score: 0.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: Xl1L/CJZ/1yX * 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