New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
home-assistant: upgrade to 0.104.1, add support for zwave/zha adapters, add various python modules for components #77883
Conversation
23dffe9
to
b5a8e67
Compare
b5a8e67
to
0ba6f11
Compare
(the new commits were just me fixing up the maintainer for the new python packages to be myself.) |
nativeBuildInputs = [ ]; | ||
buildInputs = [ ]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove if not needed please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
0ba6f11
to
2588243
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would really like to see some unit tests. Makes maintaining the python package set easier, especially during large package bumps.
This is my first time adding a python package, I think. I assume you're meaning to enable the unit tests for these packages themselves? I will look into this, this makes sense. I was just reviewing some other PRs and saw a comment that pypi doesn't include tests and I was wondering if that meant I was not getting tests as well. If this isn't a correct understanding, please let me know. |
didn't realise it was your first time dealing with python. A lot of times, packages wont package tests even when making source distributions on PyPi, so we have to check out from github or gitlab so we can build from source + test to ensure the some assumptions weren't broken outside of normal package usage. |
@@ -85,7 +82,7 @@ in with py.pkgs; buildPythonApplication rec { | |||
owner = "home-assistant"; | |||
repo = "home-assistant"; | |||
rev = version; | |||
sha256 = "1492q4icyhvz30fw5ysrwlnsls4iy5pv62ay3vq1ygcfnlapkqhl"; | |||
sha256 = "139pfcnnhi9hr6y3fyd2qaf7cmiili5alqwm4i9gpx6lwxibvyiz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hash mismatch in fixed-output derivation '/nix/store/q38aa7n70ci5sy5c6nv6fvszs5ss2mqj-source':
wanted: sha256:139pfcnnhi9hr6y3fyd2qaf7cmiili5alqwm4i9gpx6lwxibvyiz
got: sha256:0hgf8sc6isaaxx4jbm65pl16v4qnw4wff9rw5rzd2a4dza0qr2lr
cannot build derivation '/nix/store/x33a930rbfins9dkazzh17jvi0q9m610-homeassistant-0.104.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/x33a930rbfins9dkazzh17jvi0q9m610-homeassistant-0.104.1.drv' failed
sha256 = "139pfcnnhi9hr6y3fyd2qaf7cmiili5alqwm4i9gpx6lwxibvyiz"; | |
sha256 = "0hgf8sc6isaaxx4jbm65pl16v4qnw4wff9rw5rzd2a4dza0qr2lr"; |
Thanks for the attention so far, @jonringer. There are enough changes and things worthy of review that I'm going to split this PR. It was Replacing this one:
|
Per my last reply just now, I have updated the sources for the python packages per your comments here, but I need to go back and verify that was sufficient to trigger testing, or if I need to add an attribute... |
sounds good, I responded to most of them |
Motivation for this change
0.104.1
)home-assistant
service user to thedialout
group so that it can access certain zwave/zha adaptersdenonavr
: (denon component)braviarc-homeassistant
: (bravia component)plexauth
,plexapi
,plexwebsocket
: (plex component)flux_led
,getmac
: (magichome/fluxled component)cc: @Mic92
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)