Skip to content

Commit

Permalink
home-assistant: 2024.9.2 -> 2024.9.3 (#344176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Sep 24, 2024
2 parents e463fde + 94721c1 commit b02a84e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
16 changes: 9 additions & 7 deletions pkgs/development/python-modules/aioaseko/default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{
lib,
aiohttp,
apischema,
buildPythonPackage,
fetchFromGitHub,
gql,
pythonOlder,
setuptools,
pyjwt,
}:

buildPythonPackage rec {
pname = "aioaseko";
version = "0.2.0";
format = "pyproject";
version = "1.0.0";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "milanmeu";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-X2H+5roq5yNXET23Q3QNmYmG1oAFfvuvSsInsJi42/s=";
hash = "sha256-jUvpu/lOFKRUwEuYD1zRp0oODjf4AgH84fnGngtv9jw=";
};

nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];

propagatedBuildInputs = [
dependencies = [
aiohttp
pyjwt
apischema
gql
];

# Module has no tests
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/airgradient/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

buildPythonPackage rec {
pname = "airgradient";
version = "0.8.0";
version = "0.9.0";
pyproject = true;

disabled = pythonOlder "3.11";
Expand All @@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "airgradienthq";
repo = "python-airgradient";
rev = "refs/tags/v${version}";
hash = "sha256-NONOfM61oCtiNgmKCXvkEvCzSjumwjaeuzg9l/7hX8M=";
hash = "sha256-BBJ9pYE9qAE62FJFwycWBnvsoeobjsg0uIDZffIg18o=";
};

build-system = [ poetry-core ];
Expand Down
2 changes: 1 addition & 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 = "2024.9.2";
version = "2024.9.3";
components = {
"3_day_blinds" = ps: with ps; [
];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/servers/home-assistant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ let
extraBuildInputs = extraPackages python.pkgs;

# Don't forget to run update-component-packages.py after updating
hassVersion = "2024.9.2";
hassVersion = "2024.9.3";

in python.pkgs.buildPythonApplication rec {
pname = "homeassistant";
Expand All @@ -426,13 +426,13 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = "refs/tags/${version}";
hash = "sha256-qAnEdH1MDPsCKDubpYL5AswcsaPqGm+TrKdBcDD3np8=";
hash = "sha256-W/qngUrc/R3lqdIWUFIXtP9IJ6t+VGdeAdJyZuGm94Q=";
};

# Secondary source is pypi sdist for translations
sdist = fetchPypi {
inherit pname version;
hash = "sha256-gWQU18GfnsxttRzpoN9WeNeHOgioTxF9DmG2SwNuzEY=";
hash = "sha256-Qp1AiB89sq1OrAVR7qLEfX1j8kW8L2lb4Z1x4z4AzP0=";
};

build-system = with python.pkgs; [
Expand Down
14 changes: 8 additions & 6 deletions pkgs/servers/home-assistant/stubs.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, hatchling
, hatch-vcs
, home-assistant
, python
}:

buildPythonPackage rec {
pname = "homeassistant-stubs";
version = "2024.9.2";
version = "2024.9.3";
pyproject = true;

disabled = python.version != home-assistant.python.version;
Expand All @@ -17,19 +18,20 @@ buildPythonPackage rec {
owner = "KapJI";
repo = "homeassistant-stubs";
rev = "refs/tags/${version}";
hash = "sha256-o5bk63yErDOqNlYeGD7nMNuQ2p9rQuRYXlmfIMo8w8k=";
hash = "sha256-ohk0Gxq+q7PH/+SRMEu4KFz/xoc/TDeuEzTnMjaYMBU=";
};

build-system = [
poetry-core
hatchling
hatch-vcs
home-assistant
];

postPatch = ''
# Relax constraint to year and month
substituteInPlace pyproject.toml --replace-fail \
'homeassistant = "${version}"' \
'homeassistant = "~${lib.versions.majorMinor home-assistant.version}"'
'homeassistant==${version}' \
'homeassistant~=${lib.versions.majorMinor home-assistant.version}'
'';

pythonImportsCheck = [
Expand Down

0 comments on commit b02a84e

Please sign in to comment.