From patchwork Thu Dec 30 07:39:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 35784 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 267DE27BBEA; Thu, 30 Dec 2021 07:44:49 +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 9C41627BBE9 for ; Thu, 30 Dec 2021 07:44:48 +0000 (GMT) Received: from localhost ([::1]:57034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q7D-0001oO-QS for patchwork@mira.cbaines.net; Thu, 30 Dec 2021 02:44:47 -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 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)))