From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oKASNGlvzWFMCgEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 09:35:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oC66MGlvzWFgOQAAauVa8A (envelope-from ) for ; Thu, 30 Dec 2021 09:35:53 +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 7070728794 for ; Thu, 30 Dec 2021 09:35:53 +0100 (CET) Received: from localhost ([::1]:36762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qCJ-0007ey-OE for larch@yhetil.org; Thu, 30 Dec 2021 02:50:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2qBQ-0006KT-0e for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2qBP-0006M5-K8 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2qBP-00076A-JI for guix-patches@gnu.org; Thu, 30 Dec 2021 02:49:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v7 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:49:07 +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.164085051627129 (code B ref 51838); Thu, 30 Dec 2021 07:49:07 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:48:36 +0000 Received: from localhost ([127.0.0.1]:51206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2qAu-00073O-7x for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:48:36 -0500 Received: from mail-ua1-f50.google.com ([209.85.222.50]:46722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q9a-0006vV-Ey for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:47:14 -0500 Received: by mail-ua1-f50.google.com with SMTP id c36so15696721uae.13 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:47:14 -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=NOPLgp1OG4rpSsR+RHh6TFPN3WRvXz8V9MT+5YwRSQILl6SCZ4/9aKDd14I1wKlnSj In18+iqQf2RpJ/mvIOULZzfW6k4n9ooLUgUqrYtt9ZVE7GPvoqEv4t4upwCIl/bXF6a6 kAVSu+SLYTaKnX0fCs1AvFQCRklWd6N/EmSPll56Qv6YuFtZjFfyz5C8pwV5XNXnW3Jt 7KnjV1GivTV9DAHHbRldGHerfAhJqhhdLJHuOYDb1uCd1a6B2cD1u3sJGGnroxEr3SPl rZrkudcCrzgDzTNZfpl/8UWSmth5hB+UsMxv8EALi1yGAAHnWyf+OEb1OOV0VccKwJdW LL5g== 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=jR/D9lkYpWTo6nfESDSg8Bvdo+zpIjDbxKLmIlOYK5hICm5QHTLt4tXUBG8bhh7XIY LQauvR6RzrOpj41i/sbNgByDI4iWuMAGAdAAXfzjcJE9cvNlM9PDsscB18TH4unYbxb6 dPZjCRVqX9fxU2GWyNKo4+R6r2E7LYRoZKFAgLiNglBqIsJzJhuRItS1f7Q3a8a9Lwcp BY83rC0wVYzip0Qez5/4mHXQclkbGkX8ySNjN0Q3NANXFmOZZZjb4WQj5fGIELtKbczu ZLIQ0eyousuGznt5FW/mIukDHNIkAx5DzJ2C93IscB6HCG8Ub/OKM1/ocUkwOxq7LmV5 mR2g== X-Gm-Message-State: AOAM530CzYnTb5Tdr+iR9oatDTJ3pm+sJ10NxkJi4hzbCCd7tV7EtZzU MQT/QrFS8i0kp0XV1jeHo2tu0Th4CbGWmzRa X-Google-Smtp-Source: ABdhPJyJLfaXnAa5MzOe6lv8tlvKesgNSEb9EIp5ftvGmy0VQAbUlQTvdMt09XCvT3WZ9yBrKp6kNg== X-Received: by 2002:a05:6102:a83:: with SMTP id n3mr9604088vsg.2.1640850428917; Wed, 29 Dec 2021 23:47:08 -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 p46sm4941719uad.16.2021.12.29.23.47.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:47:08 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:44:38 -0500 Message-Id: <20211230074456.33433-24-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230074456.33433-1-philip@philipmcgrath.com> References: <20211230073919.30327-1-philip@philipmcgrath.com> <20211230074456.33433-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=1640853353; 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=g6SNHEAk0WNikmPW+LnEUMY6czbkgJZzU2B8rirIoOX8YKlgxtjbx6ZCR3OZauw0jdnAQy bmx470Bo3Mzymd4FGoTixQkH54TdjLRZ5B+mxFyqF44DyMnzh8tJWCs8WbSE3vgwHyqxmm okF4tlaHoQLbzA81Y0A6kpW9wFVMD8zQ4B3rrfAKNrlCkWd7iKDtWkgsKQwjhwEr6UjoHg tHxCN+t1VD9UKJQ5PrnJzuqqK3kJUAKm+vQMEp4gTfaX2TnlUuvOcd7W94iEpr1fQaZSmR C6SweWer7LyKvAEKmNXwUT4iECEJPGK2gEX3kFF8Io3jqZwKEDxX/LVx1vMeBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640853353; a=rsa-sha256; cv=none; b=Mwy0NuPrjATXSVAGE4pbKL8rxDGcknIjxjlgi1dyAgr08ffySrIr0szHEIPQwL4+QElG+s 9eZmeA37nV17fa2jkIESz00elcUwt7/wKR0mr0Jc5gDsSQzpBZj8zmwK4Pj2yVQRZ/qYaR LxjB132DdHwxXZ9L1MKx0iaGsHs6kzKi2IMBEWV+DDu3Cdd7cxOTqUy2keyd01NoogLY1M djJMpz+D92TADj3Q+X5RLWWQS1c7Ol/6ORGTbAKFBF4NlQeTFc8DnWovBEPMZcUY7Y8YF5 tP7XnsLkINbqoGMerFrXOtIQVvaOjVeU+ykfmeSm3tiqnIcz7/Fg/eDwMI3pbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=NOPLgp1O; 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=NOPLgp1O; 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: 7070728794 X-Spam-Score: 0.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: +h7kwl7p7Zve * 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