From patchwork Sat Nov 20 04:34:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 34693 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 401DE27BBE3; Sat, 20 Nov 2021 04:36:38 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B38C927BBE1 for ; Sat, 20 Nov 2021 04:36:37 +0000 (GMT) Received: from localhost ([::1]:39198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moI7A-0005eA-Sw for patchwork@mira.cbaines.net; Fri, 19 Nov 2021 23:36:36 -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 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 | 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)))