From patchwork Sun Dec 25 17:24:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 45575 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 6B5AB27BBEB; Sun, 25 Dec 2022 17:25:38 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 4D97327BBE9 for ; Sun, 25 Dec 2022 17:25:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9UkC-000416-Rl; Sun, 25 Dec 2022 12:25:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9UkA-00040s-Mq for guix-patches@gnu.org; Sun, 25 Dec 2022 12:25:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p9UkA-0004QW-EW for guix-patches@gnu.org; Sun, 25 Dec 2022 12:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p9Uk9-0007Ev-SU for guix-patches@gnu.org; Sun, 25 Dec 2022 12:25:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60316] [PATCH] WIP: Add homeassistant. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Dec 2022 17:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60316 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: marius@gnu.org, rg@raghavgururajan.name, 60316@debbugs.gnu.org X-Debbugs-Original-To: Marius Bakke , Raghav Gururajan , Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.167198906627780 (code B ref -1); Sun, 25 Dec 2022 17:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Dec 2022 17:24:26 +0000 Received: from localhost ([127.0.0.1]:50066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9UjZ-0007Dy-CB for submit@debbugs.gnu.org; Sun, 25 Dec 2022 12:24:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:56518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9UjX-0007Dr-8t for submit@debbugs.gnu.org; Sun, 25 Dec 2022 12:24:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9UjX-0003xw-48 for guix-patches@gnu.org; Sun, 25 Dec 2022 12:24:23 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9UjT-0004N7-MD for guix-patches@gnu.org; Sun, 25 Dec 2022 12:24:22 -0500 Date: Sun, 25 Dec 2022 17:24:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1671989056; x=1672248256; bh=DwbpCYfSABaHNrU9CNOjPCpe+W6UzqiT4sOkAP+QOqQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=J8V409w3R6RW6JfrArw+w3W+4LZTfnBjkCyeeWLAyQsqX2ehENAUUY09cAfXSINv4 gZ+JDQBazRXP0vEW8MjR+xyWOtD0UQENwKoAEzqEa6arvdU/oUWek8SVSUtxF5rq9F u3E6M1ypyFWJY+TYgISZYqUt/lkHxRpyhB0fraSLu/KhQKhZovAKO6tgalGxuO15mC RVr5GgsJUoAKPb4B2juFgf5ZzYd1Ry0upig5x7eDsgoZtwcINYbmNyl3fXfxs41/v4 T8KvJAzvSwdTXkp5xffw4nhybeGQDZBoZeljZo427Ld5Cuf9U0Qc6FaMu19j0C/F8h GLyFKQtgTYYDQ== Message-ID: Feedback-ID: 14143818:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, I'd love to add Home assistant to Guix to liberate our homes :-D However, it has one nasty problem. There's one Python module 'orjson' which depends on rust package [1]. Since it would mean to add a lot of Rust packages I'd like to ask for help if there isn't a better way to build the package 'orjson'? [2] FIY Marius I saw you patch set where you mentioned module 'orjson' as test dependency [3] Just out of curiosity have you been able to package the Home assistant? [4] $ /gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/bin/hass Traceback (most recent call last): File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/bin/.hass-real", line 5, in sys.exit (mod.main ()) File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/__main__.py", line 169, in main args = get_arguments() File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/__main__.py", line 69, in get_arguments from . import config as config_util File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/config.py", line 20, in from . import auth File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 12, in from homeassistant import data_entry_flow File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/data_entry_flow.py", line 16, in from .core import HomeAssistant, callback File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/core.py", line 46, in from . import block_async_io, loader, util File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/loader.py", line 34, in from .helpers.json import JSON_DECODE_EXCEPTIONS, json_loads File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/helpers/json.py", line 7, in import orjsonModuleNotFoundError: No module named 'orjson' 1 https://github.com/PyO3/maturin 2 https://github.com/ijl/orjson/blob/master/pyproject.toml3 https://issues.guix.gnu.org/58587 4 https://community.home-assistant.io/t/packaging-home-assistant-into-guix/264117 ---- Petr From 8859d65e8236009ebe605ab8089958ae2c1ef35a Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 25 Dec 2022 17:04:06 +0100 Subject: [PATCH 10/11] gnu: Add python-home-assistant-bluetooth. * gnu/packages/python-xyz.scm (python-home-assistant-bluetooth): New variable. diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bb734ee6ea..c4eb7aaba6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8479,6 +8479,25 @@ (define-public python-gridmap cluster without needing to write any wrapper code yourself.") (license license:gpl3+))) +(define-public python-home-assistant-bluetooth + (package + (name "python-home-assistant-bluetooth") + (version "1.9.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "home_assistant_bluetooth" version)) + (sha256 + (base32 + "0jcb7l8pn30dsh3rhkcmd5h9b7r7igpqi4kk9wz0lzlqi0568a45")))) + (build-system python-build-system) + (propagated-inputs (list python-bleak)) + (home-page + "https://github.com/home-assistant-libs/home-assistant-bluetooth") + (synopsis "Home Assistant Bluetooth Models and Helpers") + (description "This package provides helpers for accessing Home +Assistant Bluetooth models.") + (license license:asl2.0))) + (define-public python-honcho (package (name "python-honcho") -- 2.38.1