GNU bug report logs - #60316
[PATCH] WIP: Add homeassistant.

Previous Next

Package: guix-patches;

Reported by: phodina <phodina <at> protonmail.com>

Date: Sun, 25 Dec 2022 17:25:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 60316 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Sun, 25 Dec 2022 17:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to phodina <phodina <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 25 Dec 2022 17:25:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: phodina <phodina <at> protonmail.com>
To: Marius Bakke <marius <at> gnu.org>, Raghav Gururajan <rg <at> raghavgururajan.name>,
 Guix Patches <guix-patches <at> gnu.org>
Subject: [PATCH] WIP: Add homeassistant.
Date: Sun, 25 Dec 2022 17:24:06 +0000
[Message part 1 (text/plain, inline)]
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 <module>
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 <module>
from . import auth
File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 12, in <module>
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 <module>
from .core import HomeAssistant, callback
File "/gnu/store/8dgdzxj7vvawbd77q405fbjm4rnjdxld-homeassistant-2022.12.8/lib/python3.9/site-packages/homeassistant/core.py", line 46, in <module>
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 <module>
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 <module>
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
[Message part 2 (text/html, inline)]
[0002-gnu-Add-python-lru-dict.patch (text/x-patch, attachment)]
[0011-gnu-Add-homeassistant.patch (text/x-patch, attachment)]
[0003-gnu-Add-python-awesomeversion.patch (text/x-patch, attachment)]
[0008-gnu-Add-python-yarl-Update-to-1.8.1.patch (text/x-patch, attachment)]
[0006-gnu-python-voluptuous-Update-to-0.13.1.patch (text/x-patch, attachment)]
[0005-gnu-python-typing-extensions-next-Update-to-4.4.0.patch (text/x-patch, attachment)]
[0004-gnu-Add-python-dbus-fast.patch (text/x-patch, attachment)]
[0001-gnu-Add-python-slugify-4.patch (text/x-patch, attachment)]
[0009-gnu-Add-python-bleak.patch (text/x-patch, attachment)]
[0007-gnu-Add-python-voluptuous-serialize.patch (text/x-patch, attachment)]
[0010-gnu-Add-python-home-assistant-bluetooth.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Mon, 26 Dec 2022 05:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: phodina <phodina <at> protonmail.com>
Cc: 60316 <at> debbugs.gnu.org, Marius Bakke <marius <at> gnu.org>
Subject: Re: [PATCH] WIP: Add homeassistant.
Date: Mon, 26 Dec 2022 00:11:49 -0500
[Message part 1 (text/plain, inline)]
Petr,

> I'd love to add Home assistant to Guix to liberate our homes :-D

Woah! Thanks so much for working on this. I've been eyeing at 
homeassitant for a while. :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'?

I'd like to help. Let's see if we can avoid that dependency. If we 
can't, I'll aid this work with packing the related rust packages.


> Just out of curiosity have you been able to package the Home assistant?

Darn! I forgot that I created that post. I must've working on that and 
lost the work because of SSD failure happened midst 2021. :(

Regards,
RG.

[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Tue, 27 Dec 2022 22:08:02 GMT) Full text and rfc822 format available.

Message #11 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: phodina <phodina <at> protonmail.com>
To: Raghav Gururajan <rg <at> raghavgururajan.name>
Cc: 60316 <at> debbugs.gnu.org, Marius Bakke <marius <at> gnu.org>
Subject: Re: [PATCH] WIP: Add homeassistant.
Date: Tue, 27 Dec 2022 22:06:55 +0000
[Message part 1 (text/plain, inline)]
>> > I'd love to add Home assistant to Guix to liberate our homes :-D
> 
> 
> Woah! Thanks so much for working on this. I've been eyeing at
> homeassitant for a while. :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'?
> 
> 
> I'd like to help. Let's see if we can avoid that dependency. If we
> can't, I'll aid this work with packing the related rust packages.

Here are the additional Python packages from the orjson module repo from various requirements.txt.
Please consider them more WIP as they build and allow you to have a look around the 'python-orjson'.
I also have the Rust modules, but packaging them is quite tedious as it's almost 3k lines of code :-/
Any ideas here?

> 
> > Just out of curiosity have you been able to package the Home assistant?
> 
> 
> Darn! I forgot that I created that post. I must've working on that and
> lost the work because of SSD failure happened midst 2021. :(

Home the 'smartmontools' might save you from similar thing in future :-)

----
Petr
[0005-gnu-Add-python-pytest-random-order.patch (text/x-patch, attachment)]
[0007-gnu-Add-python-types-python-dateutil.patch (text/x-patch, attachment)]
[0003-gnu-python-pytest-benchmark-Update-to-4.0.0.patch (text/x-patch, attachment)]
[0006-gnu-Add-python-memory-profiler.patch (text/x-patch, attachment)]
[0001-gnu-system-settings-Add-phase-wrap-executable-and-ad.patch (text/x-patch, attachment)]
[0002-gnu-Add-python-benchmark.patch (text/x-patch, attachment)]
[0004-gnu-Add-python-statistics.patch (text/x-patch, attachment)]
[0009-gnu-Add-python-gunicorn.patch (text/x-patch, attachment)]
[0010-gnu-Add-python-orjson.patch (text/x-patch, attachment)]
[0008-gnu-Add-python-types-simplejson.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Sat, 14 Jan 2023 19:55:02 GMT) Full text and rfc822 format available.

Message #14 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: phodina <phodina <at> protonmail.com>
To: Raghav Gururajan <rg <at> raghavgururajan.name>
Cc: 60316 <at> debbugs.gnu.org, Marius Bakke <marius <at> gnu.org>
Subject: Re: [PATCH] WIP: Add homeassistant.
Date: Sat, 14 Jan 2023 19:54:40 +0000
Hi Raghav,

have you had the time to check the Rust dependencies for the Python module `orjson`?

Kind regards
Petr






Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Mon, 16 Jan 2023 03:54:01 GMT) Full text and rfc822 format available.

Message #17 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: phodina <phodina <at> protonmail.com>
Cc: 60316 <at> debbugs.gnu.org, Marius Bakke <marius <at> gnu.org>
Subject: Re: [PATCH] WIP: Add homeassistant.
Date: Sun, 15 Jan 2023 22:53:25 -0500
[Message part 1 (text/plain, inline)]
Petr,

> have you had the time to check the Rust dependencies for the Python module `orjson`?

Not yet, unfortunately.

I'll be working on the 21st and 22nd of this month. I'll let you know.

Regards,
RG.

[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Thu, 13 Feb 2025 10:09:01 GMT) Full text and rfc822 format available.

Message #20 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60316 <at> debbugs.gnu.org
Subject: [PATCH] WIP: Add homeassistant.
Date: Thu, 13 Feb 2025 10:08:07 +0000
[Message part 1 (text/plain, inline)]
Hi,

I think this issue may be resolved as we have nearly all missing
packages for homeassistant.

Would you like to refresh the patch?

--
Oleg
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Sat, 10 May 2025 10:32:01 GMT) Full text and rfc822 format available.

Message #23 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: reza <reza <at> housseini.me>
To: 60316 <at> debbugs.gnu.org <60316 <at> debbugs.gnu.org>
Subject: [PATCH] WIP: Add homeassistant.
Date: Sat, 10 May 2025 10:31:04 +0000
[Message part 1 (text/plain, inline)]
Hi

I did not have a look at the patch, I only found out after attempting to
package home assistant. I have attempted it outside of guix and it is
not working yet but as far as I can tell all necessary dependencies are
there. Also a few already packaged dependencies need to be updated. Is
someone willing to support the effort? Find attached the file with my
attempt.

Best,
Reza

[home-assistant.scm (application/octet-stream, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Sun, 18 May 2025 20:32:02 GMT) Full text and rfc822 format available.

Message #26 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: Evgeny Pisemsky <mail <at> pisemsky.site>
To: 60316 <at> debbugs.gnu.org
Subject: Re: [PATCH] WIP: Add homeassistant.
Date: Sun, 18 May 2025 23:30:59 +0300
Hi, I also attempted to package HA a while ago, the result is here:

https://repo.pisemsky.site/guix-homeassistant

It is somehow working, but outdated, without tests and overall trashy.

There are some problems that make packaging HA to guix problematic:

1. They require a recent python version (requires-python = ">=3.13.2")
2. HA seems to be very sensitive to the versions of dependencies.
3. The frontend can only be installed from a prebuilt wheel.

So to have it in guix we have to trust frontend packagers (the build
is technically reproducible), choose the latest version of HA that
supports our python version, enable as much of tests as possible and
pin most of dependencies, only relaxing those that certainly work.

After all of that we get an outdated version of HA that will be rarely
updated. We may call it "stable", but does it worth all the effort?




Information forwarded to guix-patches <at> gnu.org:
bug#60316; Package guix-patches. (Mon, 28 Jul 2025 11:30:02 GMT) Full text and rfc822 format available.

Message #29 received at 60316 <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 60316 <at> debbugs.gnu.org
Cc: Evgeny Pisemsky <mail <at> pisemsky.site>
Subject: [PATCH] WIP: Add homeassistant.
Date: Mon, 28 Jul 2025 12:29:12 +0100
[Message part 1 (text/plain, inline)]
Hi,

Thanks for sharing the work,
> ... does it worth all the effort?

I thinks it depedns how many pepole would use it through Guix.

Arch
- https://archlinux.org/packages/extra/any/home-assistant/

Debian (no packaged)
- https://community.home-assistant.io/t/installing-home-assistant-supervised-using-debian-12/200253/10

Gentto (gave up)
- https://community.home-assistant.io/t/gentoo-homeassistant-0-59-2-ebuild/35577

Nix
- https://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/servers/home-assistant/default.nix#L605

At least we may try once again, current Python is 3.11.

---
Oleg
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.