From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kLSJIh0WsWFXCQAAgWs5BA (envelope-from ) for ; Wed, 08 Dec 2021 21:31:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wBRnHh0WsWGOeAAA1q6Kng (envelope-from ) for ; Wed, 08 Dec 2021 20:31:25 +0000 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 37ABC8EDF for ; Wed, 8 Dec 2021 21:31:25 +0100 (CET) Received: from localhost ([::1]:48232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv3b2-0000Wn-Av for larch@yhetil.org; Wed, 08 Dec 2021 15:31:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv3a0-0006lP-1W for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:21 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv3Zu-0000Re-He for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:19 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv3Zu-00061c-Eu for guix-patches@gnu.org; Wed, 08 Dec 2021 15:30:14 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v3 27/43] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Dec 2021 20:30:14 +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 Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163899539222837 (code B ref 51838); Wed, 08 Dec 2021 20:30:14 +0000 Received: (at 51838) by debbugs.gnu.org; 8 Dec 2021 20:29:52 +0000 Received: from localhost ([127.0.0.1]:41631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3ZX-0005wA-Uo for submit@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:52 -0500 Received: from mail-vk1-f174.google.com ([209.85.221.174]:35791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv3Yw-0005rA-MI for 51838@debbugs.gnu.org; Wed, 08 Dec 2021 15:29:17 -0500 Received: by mail-vk1-f174.google.com with SMTP id q21so2367726vkn.2 for <51838@debbugs.gnu.org>; Wed, 08 Dec 2021 12:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=YkLFi4eXUGryL51luQyPQd18ZOuo6/o9TnqK4328K2I=; b=NwehvuC5vXAoNbhOmQlQ/T3biW5UyKiePZWPadgX2kyUnldz9JkF83Cevu6eabkuiB DYNXBjIhfu75elwlNZ3vz40p8dxRx7fNfOaC+tJOd4Fa8A0WRjTMrQPwJmZP8AEp73/7 2y40HVhfFohwv3TNQZly7i92pAbP/DBFTutJuBXCS9HCseBRb4/8IRXLYYPuxs1c8A4x ab0w6bF+I5MgCdKjwpWbtLvOnZp9lLOXBOhUEheOWQUD68LmH2VCVCPNny10HxZmEqXF 1nuWIzdyveNHNQzEfoukQPc2y6owljTVcpGB6YvR8jOnMmVLkyJV4dCAQO2qmAVqyju7 2a8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YkLFi4eXUGryL51luQyPQd18ZOuo6/o9TnqK4328K2I=; b=hkN4xCkjATTrmrkuN9MlxI7+1EOin7KsTFPQvFZUV16gU4X4OcOZfMU6Npn96zOcdl uD9cSX9v0u7MVT+ibPGUIo97xTwFiRIOviPF53Dbsrcr4gYLpr4rqF7FXJkfUFIhlSP2 AZcG46H92319W9WVP6oLQ+Ajewyd1DSK5QMXbG2tac75PdSOc+bn61J96kw51VoxlLhS 5QfpZpBDpLbGR8ALuea4lnE7ZN+e6GK7m97DOReVgEWb31rpN613INwfY7G08ZVk5vuM ioxAqIXtM8gRI1jaYtfCZqj7fLpj1M9HSzJvK/UFwb4CMcGFp1mjrBwSEAfXX4D5Khda c2Rw== X-Gm-Message-State: AOAM530ze1Yy9ts9arK9ceD9gLR59WYwnQ8d2ro+fv5Sk+4xLQT0L3sG ux8JLwNtW/wxvJ+tGWxTjE9/8PrYLJPpmWPbRBk= X-Google-Smtp-Source: ABdhPJy1Gg9fPGCv9j+j8juG+p9LxaXVskCZNisAcS1LvzwLEEumKDW7ljC0ZbWAuC/HIhw9wLSFLA== X-Received: by 2002:a05:6122:54b:: with SMTP id y11mr1456692vko.16.1638995349064; Wed, 08 Dec 2021 12:29:09 -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 c21sm2495185vso.21.2021.12.08.12.29.08 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 12:29:08 -0800 (PST) From: Philip McGrath Date: Wed, 8 Dec 2021 15:28:22 -0500 Message-Id: <20211208202838.752542-28-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211208202838.752542-1-philip@philipmcgrath.com> References: <46a042bc08eb72a068b1e8c69bfe28cf2d4b2e53.camel@gmail.com> <20211208202838.752542-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638995485; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=YkLFi4eXUGryL51luQyPQd18ZOuo6/o9TnqK4328K2I=; b=k2opC0fbDfIECppQ6iULkfh2f6cuF7wf1hKwzQva4QlCf03dwO3QfHHxQV3qZbiEhsNmmo iY7K/iGp5xo+JKT2CTvoNDqtQL7kXFuCf+kbCZ1XFSKGrlKylywdE4vrb/bNEkrGoPpytj xXFoYcjipiw+++XFZEa24KB7ZB7y7uGb8iJ1EkfdvwFmYye9+NoYf2gqgxua6TA/tP1XOa p2aQLDWJxFt3pyNcuxD6e8rpdrhaMlTX3l1vCQuhZZS7GFCNAsNQ39SxIzLoSBQV/sV1ru 916nXgfdHY+cc1W0BUWPh5NeDW5KvxA5zDQ/XyT+Ih8fHazvgn3+A5y+brJ3QA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638995485; a=rsa-sha256; cv=none; b=HXJSLIxWZk4XWnfD7ackOE4ClxBNfOccqMUvkgkBMCT2sm6KCcoMDx1TS1oCVoCbZJ/oDJ fGLimyZfwCYJEoFqcaEm3mJdqH1MAXhOnsHtehEI9ZiM7NN1jXDLj7UWsyvwg5ajFT4PFv ohfhAkKf06AIx/uHih2N0z+KjdAPCInYY5NF4muyI0+wb/HgsdLI7ZPo8Ld9QCIP8QR+iN cqB+UwDVuHhI7a/rTs1R3OS1GcZu6uGA9s0iupVmPfddcvnrkPTAaj4mFml2PfAysWhNvE A3BYRgjiOkAu9W68yJ2Izu6WBTna2FiSJRo6oyobWLBMVuANROXhqgnig56nNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=NwehvuC5; 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.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=NwehvuC5; 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: 37ABC8EDF X-Spam-Score: -0.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: DHYVEfRMuVwe * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 2019ec32df..586cd66e1d 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)) @@ -88,3 +92,64 @@ (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 + `(("open-zwave" ,open-zwave) + ("node-nan" ,node-nan))) + (native-inputs + `(("which" ,which) + ("python" ,python) + ("pkg-config" ,pkg-config))) + (build-system node-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (define node-dir + (assoc-ref inputs "node")) + (invoke (string-append node-dir "/bin/npx") + "--call" + (string-append + node-dir + "/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