Skip to content

Commit

Permalink
Merge pull request NixOS#82315 from Mic92/home-assistant
Browse files Browse the repository at this point in the history
homeassistant: 0.106.1 -> 0.106.6
  • Loading branch information
Mic92 authored Mar 12, 2020
2 parents 8f2109c + d315674 commit a1bcb3a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pyicloud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

buildPythonPackage rec {
pname = "pyicloud";
version = "0.9.2";
version = "0.9.4";

src = fetchPypi {
inherit pname version;
sha256 = "1jjkzf7vwms6pymnmdr893830vrymxnq455xnqp21wqhjjiy2amd";
sha256 = "0r171wnq2g5bw7gd59vh6flm0104ix1a6s2vhdrf8s74hipw57si";
};

propagatedBuildInputs = [
Expand Down
3 changes: 2 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Do not edit!

{
version = "0.106.1";
version = "0.106.6";
components = {
"abode" = ps: with ps; [ ]; # missing inputs: abodepy
"acer_projector" = ps: with ps; [ pyserial];
Expand Down Expand Up @@ -124,6 +124,7 @@
"configurator" = ps: with ps; [ ];
"conversation" = ps: with ps; [ aiohttp-cors];
"coolmaster" = ps: with ps; [ ]; # missing inputs: pycoolmasternet
"coronavirus" = ps: with ps; [ ]; # missing inputs: coronavirus
"counter" = ps: with ps; [ ];
"cover" = ps: with ps; [ ];
"cppm_tracker" = ps: with ps; [ ]; # missing inputs: clearpasspy
Expand Down
4 changes: 2 additions & 2 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let
extraBuildInputs = extraPackages py.pkgs;

# Don't forget to run parse-requirements.py after updating
hassVersion = "0.106.1";
hassVersion = "0.106.6";

in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant";
Expand All @@ -84,7 +84,7 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant";
repo = "home-assistant";
rev = version;
sha256 = "0i261hzjfhqnq7j8dwsnj2h2vmr4vnxkvk2ff910am1knzni3a2z";
sha256 = "11kv5lmm8nxp7yv3w43mzmgzkafddy0z6wl2878p96iyil1w7qhb";
};

propagatedBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/servers/home-assistant/frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ buildPythonPackage rec {
# the frontend version corresponding to a specific home-assistant version can be found here
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
pname = "home-assistant-frontend";
version = "20200220.4";
version = "20200220.5";

src = fetchPypi {
inherit pname version;
sha256 = "0cb8b6xizxz1q5r0qgwsqs53va9bxdqnp4vwf5lh8ppv9zy7hssc";
sha256 = "0nc44r5ybq0prsz2yid622i0xr7q0qrc4ymbk69bqg6jrmjpbdl1";
};

# no Python tests implemented
Expand Down
9 changes: 4 additions & 5 deletions pkgs/servers/home-assistant/parse-requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,21 @@ def get_version():
return m.group(1)


def parse_components(version="master"):
def parse_components(version: str = "master"):
components = {}
with tempfile.TemporaryDirectory() as tmp:
with urlopen(
f"https://github.com/home-assistant/home-assistant/archive/{version}.tar.gz"
) as response:
tarfile.open(fileobj=BytesIO(response.read())).extractall(tmp)
# Use part of a script from the Home Assistant codebase
sys.path.append(os.path.join(tmp, f"home-assistant-{version}"))
core_path = os.path.join(tmp, f"core-{version}")
sys.path.append(core_path)
from script.hassfest.model import Integration

integrations = Integration.load_dir(
pathlib.Path(
os.path.join(
tmp, f"home-assistant-{version}", "homeassistant/components"
)
os.path.join(core_path, "homeassistant/components")
)
)
for domain in sorted(integrations):
Expand Down

0 comments on commit a1bcb3a

Please sign in to comment.