From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uFl0KZ4012ENHwAAgWs5BA (envelope-from ) for ; Thu, 06 Jan 2022 19:27:42 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SJ7KJp4012E0JQAA9RJhRA (envelope-from ) for ; Thu, 06 Jan 2022 19:27:42 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 565C7602A for ; Thu, 6 Jan 2022 19:27:42 +0100 (CET) Received: from localhost ([::1]:45422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5XUC-0001bm-5G for larch@yhetil.org; Thu, 06 Jan 2022 13:27:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5XSm-0007Tx-MO for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:15 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5XSk-00013U-28 for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5XSj-000574-Vj for guix-patches@gnu.org; Thu, 06 Jan 2022 13:26:09 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v8 23/41] gnu: Add node-openzwave-shared. References: <20211114124151.36743-1-philip@philipmcgrath.com> In-Reply-To: <20211114124151.36743-1-philip@philipmcgrath.com> Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Jan 2022 18:26:09 +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: Philip McGrath Cc: 51838@debbugs.gnu.org, Timothy Sample , Pierre Langlois , Jelle Licht , Leo Famulari Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164149351719285 (code B ref 51838); Thu, 06 Jan 2022 18:26:09 +0000 Received: (at 51838) by debbugs.gnu.org; 6 Jan 2022 18:25:17 +0000 Received: from localhost ([127.0.0.1]:42237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRs-00050s-If for submit@debbugs.gnu.org; Thu, 06 Jan 2022 13:25:17 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5XRI-0004u6-GB for 51838@debbugs.gnu.org; Thu, 06 Jan 2022 13:24:41 -0500 Received: by mail-wr1-f65.google.com with SMTP id q8so6438098wra.12 for <51838@debbugs.gnu.org>; Thu, 06 Jan 2022 10:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:to:cc:content-transfer-encoding:message-id :mime-version; bh=EU82oOZgzvbzGzcfhyDSfqHTxqoc3qVNnYhPbB0eBR8=; b=caP12/Z2JvBKjhJaq8cE1YPW50SUKTXxqOQv/47pau8D7qC2OYWXhyZXbDiOwWt3/d inU9NXkCwpmSGVl9cmjqbVe+AFHqI4X8uIP0EKO4+N6VVOzdrqD/GS2FltL7RdLGOKL+ mrYU+ZAiPuxURQbpqVI+cPaAW836pQYiOIhOWvI1OKiC6xx8esUMEEQySG2ENuCMCsMj FN3FJjOUXK29jlImBFfjnBCRxtpbNdmq/tGnwZWYFxJ+xYmXGcxIT+NpiALCCWjg6KFm ojjNlwkMCEvkuQYKNnyATvVxHVYLmFvwBY0r1SlvC3aaND2yBBVoHMsWtmBoPcE8fbmV J9Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:to:cc :content-transfer-encoding:message-id:mime-version; bh=EU82oOZgzvbzGzcfhyDSfqHTxqoc3qVNnYhPbB0eBR8=; b=a0nEyxpIsxt80FbygEh7JohQrVpICqQ9l6sQ/QDMYTa0DqNuE3+3GzmyphlAGOWNCi JUzysk3kFJWvu/Z/Gw2jXNeLUaB+wW83w2KJHjkvFNGJC7okqqA0MUxYDFZACLekQ33N 7ZpaV4qZblBM700ftLF4zmPOaUKz6qYDoLWBdVyl+t8PdRMPlWMKhmLx78SZCa7HywvZ iT0ieKsKm3Uf7eDn8afI23wmTVLae0qMM4ULtNkXMNZMxy4X66I2A0FBxF4UPFmS9bAG stxIqjFBh8vOszf3nnRgVSVLb/yjGHzHTdODrdsZ3lZEgbNqXeFfd6snZsEYyLt8i14+ Lkjw== X-Gm-Message-State: AOAM530KlSckNJJ99EJVfbHLKrOJiDzjGjs1nhhAl59twcadI+3ubXVH LRtGwb7NkhFpuR/95wqhEZs= X-Google-Smtp-Source: ABdhPJxVRQrQsnYpqwfN9XVTGH0ouXjq5wqVChZcR4ba/JiukC7nc0JKuowqGyvAo9JEwjLBKqoehA== X-Received: by 2002:a05:6000:1acd:: with SMTP id i13mr50205158wry.652.1641493475051; Thu, 06 Jan 2022 10:24:35 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id b17sm2693311wrq.91.2022.01.06.10.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 10:24:34 -0800 (PST) From: Liliana Marie Prikler Date: Thu, 30 Dec 2021 02:39:01 -0500 Content-Transfer-Encoding: 8bit Message-ID: <272c63ec24e01a9bf50503219a57431cb1cdbebf.camel@gmail.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+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=1641493662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=EU82oOZgzvbzGzcfhyDSfqHTxqoc3qVNnYhPbB0eBR8=; b=ty0YY7CM5zDAnaEhmg7JD4APRavKLmelEu3mBh0lYM8dO0xm2/AbtAzeHTVLkzVREZ+lE/ pP3ug1f3D2akfFyb+PafJ06rtjqQI2YX4eZekonofdw078iKH7cd9icwWUA7ohFmmJXfHf cQZKLcsDyYrqOhuboxHpFLzPYO4jfZUKMyAtvXpEm9Y0KEymaDoXkOnTMatonp9pyDWK2m I+vKdoIO91S+YPbG6ePOqyHUNFJ+W5USxb9LpxO/9vbmnOtSCasQgyzvhlSHIT+FKUdfQx tW2Se0eIYp8wLJNHNUwLvfE3eOhak7UaaoQxS7STO1BuasJ665XObAj7BBD4jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641493662; a=rsa-sha256; cv=none; b=XdcEDkCimKgZCnrsbz+Y0AzZtSfHPSdtqMaqz23DfT6tEWW9HHj5ldoRg+7BmnG/1rTRsb ukQfhRrKQuvbJDyxAXAE3McYSR3B55M1NwsEN1OQ5beDJrX97j0YvdTyqrMNU6BKgTwMq2 2R9NMkzUFCI6Bkz/VocHgp//EMllj4DoFQafTofvx95ROmlpg7kwo4FhrXr6W5CaEi2zHz twHhQTHOrgA2/v3N/pF5iGy2TFiTcTO+KtO6bGhXkTNMpcjfwGMGVL1onua8IImk+jqTZU cWmWKpkm8ZpwJhOdsKNjoMnvHJJRd4CUsbk2WG9jc1Kx6/bpuXVpl+qUO+Ak3w== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="caP12/Z2"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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.30 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="caP12/Z2"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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: 565C7602A X-Spam-Score: -0.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 15HBNoNaZEPo * gnu/packages/zwave.scm (node-openzwave-shared): New variable. Signed-off-by: Liliana Marie Prikler --- 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.34.0