From patchwork Thu Dec 30 07:44:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35820 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 62F7727BBEA; Thu, 30 Dec 2021 07:50:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D652727BBE9 for ; Thu, 30 Dec 2021 07:50:07 +0000 (GMT) Received: from localhost ([::1]:36762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2qCM-0007ey-VD for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:50:06 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)))