From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0DsxJ//wu2H9NgEAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 03:07:59 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0LD3Iv/wu2HvcQAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 02:07:59 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 402E535929 for ; Fri, 17 Dec 2021 03:07:59 +0100 (CET) Received: from localhost ([::1]:55622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my2f7-0006nN-UW for larch@yhetil.org; Thu, 16 Dec 2021 21:07:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my2dM-0004NU-Va for guix-patches@gnu.org; Thu, 16 Dec 2021 21:06:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1my2dM-00081I-Gs for guix-patches@gnu.org; Thu, 16 Dec 2021 21:06:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1my2dM-0005DD-Bo for guix-patches@gnu.org; Thu, 16 Dec 2021 21:06:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v5 27/45] gnu: Add node-openzwave-shared. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Dec 2021 02:06:08 +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.163970676119894 (code B ref 51838); Fri, 17 Dec 2021 02:06:08 +0000 Received: (at 51838) by debbugs.gnu.org; 17 Dec 2021 02:06:01 +0000 Received: from localhost ([127.0.0.1]:37352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my2dE-0005Ai-E7 for submit@debbugs.gnu.org; Thu, 16 Dec 2021 21:06:00 -0500 Received: from mail-qt1-f181.google.com ([209.85.160.181]:39557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my2cw-00059Q-NY for 51838@debbugs.gnu.org; Thu, 16 Dec 2021 21:05:43 -0500 Received: by mail-qt1-f181.google.com with SMTP id l8so1196746qtk.6 for <51838@debbugs.gnu.org>; Thu, 16 Dec 2021 18:05:42 -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=9kFzm2cWD3XBCWmjkJOLNPXi74hleyE4vrg8wvKIHow=; b=jgTfaG+WagrxlUpphYJKhugecC8JsnCBdwqArA4DK5Qb/Hpe7L3GHGjQKtN51TbGs9 jr96iS68WYC7hNazWX7CpP+MCki7TfgEicCOlZbnl3EDI2VaounUGo1VD2u3lD3FXXx6 HuZCZw8nzqKJ+/LvywyWDLPa52XlsWPlJj2jQMsKNhddKZZdIR0dOeFNbeQbCH5KSb7t 2XfFqdi27ncfwQKUPPOoTzekW1RNBKFhD2695Ia3WHxRPUFFsZ0RX+iH8aq30lgUEkia dU4OlIoR2u/H54K0ZczfcOyWl5ZpRWZ3wTjc54hYGWvXoVa2wEbgINDc+C0QsNXx+kVC iIgw== 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=9kFzm2cWD3XBCWmjkJOLNPXi74hleyE4vrg8wvKIHow=; b=txJ+lbo2zbzc/I9t8oTnJZs/nHnd3kLyBltWo1d/ooqVeJLRcKS1FqCAaItrqnHcQ0 iQrN9CC2RGiJPvNmj1eZz+DKW/b8Rs68CxS4Wo4KXWxWNKr4oOSHDUnOVsI0NZcIS+E7 unMgMWUcgNGgS2dS7y8SLGbXP6lNk5iHIPEzl9TiruEoe1/M8/eIkIAsMw2CQPNvCy4c a0NiSXxG2HJwDqgGbxG/NPV0O28g+XoEllvXKybqLjlzVdfkXdya89L7vf+rZtQV5W9O O3KbsXHRCjOk0yyFq2sD/sPdZQhCTBpShv9wkZGgGIv0FQxGpTXhsW+qWyxRleET+c8R x4Jg== X-Gm-Message-State: AOAM530yHs6IFgWpP1ofok8H/dg5mHFzk99KcPBvlqG/mI0k/LDuYS5s jqDOZazGoXft6upwEgf576ro+wGdzT4V83o7obI= X-Google-Smtp-Source: ABdhPJxcKAr6OG2GmUWqAn0hDa1YZNXtGWVQ6SVmp5ZQsBdgTQEw9Ukf+M+b94mUmzfU0lKqnUdv4g== X-Received: by 2002:a05:622a:1a05:: with SMTP id f5mr688794qtb.283.1639706737305; Thu, 16 Dec 2021 18:05:37 -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 v10sm5959816qtk.13.2021.12.16.18.05.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Dec 2021 18:05:37 -0800 (PST) From: Philip McGrath Date: Thu, 16 Dec 2021 21:03:07 -0500 Message-Id: <20211217020325.520821-28-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211217020325.520821-1-philip@philipmcgrath.com> References: <20211213060107.129223-1-philip@philipmcgrath.com> <20211217020325.520821-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=1639706879; 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=9kFzm2cWD3XBCWmjkJOLNPXi74hleyE4vrg8wvKIHow=; b=LraDn9DUWCD5bl9r+nDVhwA01JnxH8FhId18+CO5sfjOZDGVK7IS6behH4vq/2nXJmIf7U calfIkU1tEyyMkHH2zCSQ8AVnU7RWEctESV8Brkc4NSySDS/DvXKpKNhPLU4CgbXvR4fKa CyYvPA5QHFsUvlfsdgrFPpdDK+ZdlAAMHH4tWNHTJn8+GvXf17Kn2WPRLIVv12K8nGEBDg YGzWMTgTH1p/qzH2KKuVqTVBKi2oGK1yytWwd12WYfQRkBL2cmVw1bmr4bGchJYzJukCny xwPZyduhsBmz1X3MTRxa67SZgr2CZWZTjQk6qFygxbajnny/ijsZcB3DUijWzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639706879; a=rsa-sha256; cv=none; b=bvBdcFX/GcmdbJrtosAq/jpKKjhvzeQmZQ1YlcwE0hyfHhzWleYLGPRvSeggawnS85TV9L ThXccrySxaawecSZCHuu1d+9mxYImdP++3y5lsOgRrGYuDwck3oouQjKeFY9vkj0/fhmRq 9ZZWfAt3VTvV2tufuuwbQ7+5KFnuBC/EbVOfHGmF4av98bvy/w7PuhSCTGw6mYIOvsK7YM ROkwybEpuli7a95JaKfDSEvz9sQy02b9Oq5UDQejnh7Gbga+KJ1svXb47QeAGMIFAhqSSE +AxlzGC4+oG6Q3hHgdOUg4YN4Sad00N6aOwt2PsYYwUSUOTCmzuv6llDFNfPRQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jgTfaG+W; dmarc=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.99 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=jgTfaG+W; dmarc=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: 402E535929 X-Spam-Score: -0.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: vf3sBBoxry3A * gnu/packages/zwave.scm (node-openzwave-shared): New variable. --- gnu/packages/zwave.scm | 66 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/zwave.scm b/gnu/packages/zwave.scm index 4d8286e334..e247c8488e 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,65 @@ (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 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