From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IJKmGlt7mGHnzwAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 05:36:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wBJEFlt7mGHdRQAAbx9fmQ (envelope-from ) for ; Sat, 20 Nov 2021 04:36:43 +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 E347013714 for ; Sat, 20 Nov 2021 05:36:38 +0100 (CET) Received: from localhost ([::1]:39198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moI7C-0005eA-31 for larch@yhetil.org; Fri, 19 Nov 2021 23:36:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moI6e-000460-59 for guix-patches@gnu.org; Fri, 19 Nov 2021 23:36:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moI6c-0007mI-CZ for guix-patches@gnu.org; Fri, 19 Nov 2021 23:36:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moI6c-00081g-8s; Fri, 19 Nov 2021 23:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v2 24/26] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 20 Nov 2021 04:36:02 +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: Liliana Marie Prikler X-Debbugs-Original-Xcc: Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.163738292930779 (code B ref 51838); Sat, 20 Nov 2021 04:36:02 +0000 Received: (at 51838) by debbugs.gnu.org; 20 Nov 2021 04:35:29 +0000 Received: from localhost ([127.0.0.1]:41270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moI64-00080M-Rh for submit@debbugs.gnu.org; Fri, 19 Nov 2021 23:35:29 -0500 Received: from mail-qk1-f179.google.com ([209.85.222.179]:34743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moI5D-0007tC-92 for 51838@debbugs.gnu.org; Fri, 19 Nov 2021 23:34:35 -0500 Received: by mail-qk1-f179.google.com with SMTP id t6so12402723qkg.1 for <51838@debbugs.gnu.org>; Fri, 19 Nov 2021 20:34:35 -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=ksEw0RUVS1ywZrLGvlpoJrIb2+18MJYfN6pWtlV3BM4=; b=G00+cUOKXXo7IGQ1q1QGklDwPq2lYp8KWh9S4hEuKU0UtBlb3GzVrVUyTDlJ9+Rf6P ANJNqcLvaDiCL0xJXSMo40Vh+GnIf+XxK0pY8BXG5gQgBOvy/0eem7U6jgNWtqpfpmEw +6xwr3OtiF5FbqX2NL0n/AyUUQuDRdoenbiIgmjLxzvwlhp0ZFhR+HLTX08yX3Oi8cp9 6Usx94ltf5StBYxF3gIUnTIhqam8/OOgglwvfdQwHCvjt+0qVqcLNtn1TUXIXJTUaVDf yZAysS192Tvnv83BOV4aaDYtYEAGTe4cZSTW170yBAyOqZ+a2gSGyTSDl+y8ghriiXlR EcrQ== 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=ksEw0RUVS1ywZrLGvlpoJrIb2+18MJYfN6pWtlV3BM4=; b=hxdwX2vxsdL9q+UQI/CCHjZGhi1o/yiUah/mvKAukY45XCk98EtMmhCLQAC9hfcV1P F2fAFO8AmVwVG+6lJwNVWBXz7LA12UI54vixxMhXWRYQujvOmtH7VcKpBByHWhiIErtK Hs6YmGigADqc0tXmG2MXRlOyreSdZCXjgmxqpKogO50BuTJm7eAiKVpPIbi5O/GADMcH +Dqeo5GONDPHKLD/QRR7jCvsFpfRzAHHOzTL58wp6iyXCeZCNEezXwGdu4q0NEjB48KH gMrlTgd0pt8qqxEyC3p/gQ9EAkVjrSm2z/u4FA1esQotUMpiqioN+K8AlkvP8XoFWgyU jdBg== X-Gm-Message-State: AOAM531DgSYdC1lkuFIp76RQ6cxug33g6J1Q2saYiYhho+yXq5Pyz6VN B8vJ2Q+uznvXvGtJBO75kwdUkVHLNIfRHDRK X-Google-Smtp-Source: ABdhPJyXg1qmjwY3Hs7Q6YiGPgqfvbUhg12BlMc19Yef9dpBt2CrU2szXB4/JAdPR/v4QgiAfHKRvA== X-Received: by 2002:a37:e206:: with SMTP id g6mr33909809qki.61.1637382869725; Fri, 19 Nov 2021 20:34:29 -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 s20sm924596qtc.75.2021.11.19.20.34.29 for <51838@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Nov 2021 20:34:29 -0800 (PST) From: Philip McGrath Date: Fri, 19 Nov 2021 23:34:04 -0500 Message-Id: <20211120043406.952350-24-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211120043406.952350-1-philip@philipmcgrath.com> References: <5a04aa92-e80d-e11b-235c-b7f5e3a92d00@philipmcgrath.com> <20211120043406.952350-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=1637382999; 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=ksEw0RUVS1ywZrLGvlpoJrIb2+18MJYfN6pWtlV3BM4=; b=kgEi3YfcU+sM1k1kSyge/3kaeYWhLsPqX5t18zBl7htTbTcDUujWAADZ5YZsieg1twFxkT jsWvkqZysevoiV2GYtiBes8Gx9L6lClsHOpb0bYMpP96+r2RKJbb/IvtfY+hyZtyAGLRJk zrHOMf/rOCU4I3XDxGXO5aHqYBcT+p29iRnnWli/blokQ6cbd5QbNy6ku5XVocVTBXNBZE MMfqfhzDa4WT3W2Qh6Vb+fIygtSxrA351BnALA5KBkToR7Q4tSD2whTSezT35yzhTbwhaK 2DPQHk3hPUhTaDtkxVQP7h0ZQRIxD7uhs1L6WA27cfVfhtBOck53ldY4SacCcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637382999; a=rsa-sha256; cv=none; b=rVb6LgsWtlm/GJkp6AAuAoFjVvj7kuRdUtDsFl6jO5bApUfhF03+lH7ShIr3qP/n7/MVSq UY0vJ6fNrf7T9Dli4ZSFM3c6q3lDc5AGZLGTN+L4/MSOVOTyZwEA+TkSW6E4fPXBqUjrkM URzRJexhv0gchsrzrNTCf5YPtoKGdD6LDegHnJT+RM9IIJ/ZUiys/MGXkjhlOpyGrFHZol ncgHTamwpInwoV6fGOm0dWPm6qKyrHVYXU68APzNEXtRVoFnoCd1dogUWPQRmyM+dS19Dc 1hrueh5VvF1eJozOmV8TfSBqWzNwPvqF0FUcsxirUQt6vqEaW2fwJtP9rttJdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=G00+cUOK; 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.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=G00+cUOK; 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: E347013714 X-Spam-Score: -0.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: 96/0mOWcaP0X * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 2019ec32df..8757ddecf2 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,66 @@ (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 + `(#:libuv? + #t + #: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