Merge pull request #319096 from NixOS/home-assistant

home-assistant: 2024.6.1 -> 2024.6.2
This commit is contained in:
Martin Weinelt 2024-06-12 16:44:45 +02:00 committed by GitHub
commit 48b2f19db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 201 additions and 24 deletions

View File

@ -3,16 +3,32 @@
, python3
}:
python3.pkgs.buildPythonApplication rec {
let
python = python3.override {
packageOverrides = self: super: {
pyunifiprotect = super.pyunifiprotect.overridePythonAttrs {
version = "unstable-2024-06-08";
src = fetchFromGitHub {
owner = "ep1cman";
repo = "pyunifiprotect";
rev = "d967bca2c65e0aa6a7363afb6367c3745c076747";
hash = "sha256-gSAK/T9cjIiRC/WjwrdLP+LHzEEUsNbwpXClYqpnMio=";
};
};
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "unifi-protect-backup";
version = "0.10.7";
version = "0.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ep1cman";
repo = "unifi-protect-backup";
rev = "refs/tags/v${version}";
hash = "sha256-Ypx9drM9Ks3RR75lz2COflr6GF6Bm9D+GwJWPGwuq/c=";
hash = "sha256-t4AgPFqKS6u9yITIkUUB19/SxVwR7X8Cc01oPx3M+E0=";
};
pythonRelaxDeps = [
@ -22,12 +38,12 @@ python3.pkgs.buildPythonApplication rec {
"pyunifiprotect"
];
nativeBuildInputs = with python3.pkgs; [
nativeBuildInputs = with python.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = with python.pkgs; [
aiocron
aiolimiter
aiorun
@ -40,7 +56,7 @@ python3.pkgs.buildPythonApplication rec {
pyunifiprotect
];
nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = with python.pkgs; [
pytestCheckHook
];

View File

@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "google-nest-sdm";
version = "4.0.4";
version = "4.0.5";
pyproject = true;
disabled = pythonOlder "3.10";
@ -27,7 +27,7 @@ buildPythonPackage rec {
owner = "allenporter";
repo = "python-google-nest-sdm";
rev = "refs/tags/${version}";
hash = "sha256-bvfc9FPUSCVaHxyICCXmUCbbc6Vdxba1Tv8dbi7Ax6M=";
hash = "sha256-SA2PlHiqvvbXmCg0WqehLDiIGEMDbzwbzbCX1klMHis=";
};
build-system = [ setuptools ];

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "py-synologydsm-api";
version = "2.4.3";
version = "2.4.4";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "mib1185";
repo = "py-synologydsm-api";
rev = "refs/tags/v${version}";
hash = "sha256-KhYK72kIPeZ32bdJ+3j8rcq/LIrcuELQD+/OQYhktog=";
hash = "sha256-46KoOKBiulTYH2x8ftFPVDF0oeBG1Pe9PkonxIV7528=";
};
nativeBuildInputs = [

View File

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "pydantic";
version = "1.10.14";
version = "1.10.16";
pyproject = true;
disabled = pythonOlder "3.7";
@ -25,7 +25,7 @@ buildPythonPackage rec {
owner = "pydantic";
repo = "pydantic";
rev = "refs/tags/v${version}";
hash = "sha256-tcaHSPZggVwyzCgDmwOgcGqUmUrJOmkdSNudJTFQ3bc=";
hash = "sha256-dn/ZsxbkyK2sJxpo6IsoMBRjq1STdu+xuqHXoNG+Kzk=";
};
nativeBuildInputs = [

View File

@ -0,0 +1,62 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
poetry-core,
# dependencies
aiohttp,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyopenweathermap";
version = "0.0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "freekode";
repo = "pyopenweathermap";
# https://github.com/freekode/pyopenweathermap/issues/2
rev = "f8541960571591f47d74268d400dfd0d6c9adf67";
hash = "sha256-hQotoRbTbcsDTwZ3/A4HkWi2ma3b9L0vvwH9ej8k1eE=";
};
patches = [
(fetchpatch2 {
# https://github.com/freekode/pyopenweathermap/pull/3
name = "pytest-network-mark.patch";
url = "https://github.com/freekode/pyopenweathermap/commit/580ce4317fdffb267fc9122c3c2f8355f1178502.patch";
hash = "sha256-dHopNTVO1sZgcMUYE1GrrMjbkwSFxNELIfXe2SyQrhw=";
})
];
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"-m"
"'not network'"
];
pythonImportsCheck = [ "pyopenweathermap" ];
meta = with lib; {
description = "Python library for OpenWeatherMap API for Home Assistant";
homepage = "https://github.com/freekode/pyopenweathermap";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -9,14 +9,14 @@
}:
let
pname = "tuya-device-sharing-sdk";
version = "0.2.0";
version = "0.1.9";
in
buildPythonPackage {
inherit pname version;
src = fetchPypi {
inherit pname version;
hash = "sha256-fu8zh59wlnxtstNbNL8mIm10tiXy22oPbi6oUy5x8c8=";
hash = "sha256-mBKR+ttBo0VF33pEmYdjbyM4bGgyDiYexIIsf8mXZW4=";
};
# workaround needed, upstream issue: https://github.com/tuya/tuya-device-sharing-sdk/issues/10

View File

@ -0,0 +1,93 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
aiofiles,
aiohttp,
aioshutil,
async-timeout,
dateparser,
orjson,
packaging,
pillow,
platformdirs,
pydantic,
pyjwt,
rich,
typer,
yarl,
# tests
aiosqlite,
asttokens,
ffmpeg,
pytest-asyncio,
pytest-benchmark,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "uiprotect";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "uilibs";
repo = "uiprotect";
rev = "v${version}";
hash = "sha256-Laf8P77fLTTJqqUoGZUtGIVmitrXS1OQLeW8Gqu66NU=";
};
postPatch = ''
sed -i "/addopts =/d" pyproject.toml
'';
build-system = [ poetry-core ];
dependencies = [
aiofiles
aiohttp
aioshutil
async-timeout
dateparser
orjson
packaging
pillow
platformdirs
pydantic
pyjwt
rich
typer
yarl
];
nativeCheckInputs = [
aiosqlite
asttokens
ffmpeg # Required for command ffprobe
pytest-asyncio
pytest-benchmark
pytest-timeout
pytest-xdist
pytestCheckHook
];
pytestFlagsArray = [ "--benchmark-disable" ];
pythonImportsCheck = [ "uiprotect" ];
meta = with lib; {
description = "Python API for UniFi Protect (Unofficial";
homepage = "https://github.com/uilibs/uiprotect";
changelog = "https://github.com/uilibs/uiprotect/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -2,7 +2,7 @@
# Do not edit!
{
version = "2024.6.1";
version = "2024.6.2";
components = {
"3_day_blinds" = ps: with ps; [
];
@ -3210,7 +3210,8 @@
pyopenuv
];
"openweathermap" = ps: with ps; [
]; # missing inputs: pyopenweathermap
pyopenweathermap
];
"opnsense" = ps: with ps; [
pyopnsense
];
@ -4762,7 +4763,7 @@
unifiled
];
"unifiprotect" = ps: with ps; [
pyunifiprotect
uiprotect
unifi-discovery
];
"universal" = ps: with ps; [
@ -5724,6 +5725,7 @@
"opensky"
"opentherm_gw"
"openuv"
"openweathermap"
"opnsense"
"opower"
"oralb"

View File

@ -533,7 +533,7 @@ let
extraBuildInputs = extraPackages python.pkgs;
# Don't forget to run update-component-packages.py after updating
hassVersion = "2024.6.1";
hassVersion = "2024.6.2";
in python.pkgs.buildPythonApplication rec {
pname = "homeassistant";
@ -551,13 +551,13 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = "refs/tags/${version}";
hash = "sha256-T6qmmY7AIWUHwxD/WIrr9x685jrXzQ/1brTxWZTKsmw=";
hash = "sha256-o37/Vfs9+0pxihfaInB6f8DI1uExbBcQse2841v6+Ec=";
};
# Secondary source is pypi sdist for translations
sdist = fetchPypi {
inherit pname version;
hash = "sha256-Qp22sOVgxpbU9mglfK+IbWRvuyYm/jR70I4YvnDuF6s=";
hash = "sha256-eGlPcB5U6yJZd/771xzqKKY7REnCsniDypGndlsGo/E=";
};
build-system = with python.pkgs; [

View File

@ -4,7 +4,7 @@ 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 = "20240605.0";
version = "20240610.0";
format = "wheel";
src = fetchPypi {
@ -12,7 +12,7 @@ buildPythonPackage rec {
pname = "home_assistant_frontend";
dist = "py3";
python = "py3";
hash = "sha256-xuzaGS26BmUlJqfRD65Rc+NpQmyQ77nNLbPAyYuqGNo=";
hash = "sha256-k4zUo439nfB71LVhv3Mfhj5mRD4Oduas+NHEyAqYBa4=";
};
# there is nothing to strip in this package

View File

@ -8,7 +8,7 @@
buildPythonPackage rec {
pname = "homeassistant-stubs";
version = "2024.6.1";
version = "2024.6.2";
pyproject = true;
disabled = python.version != home-assistant.python.version;
@ -17,7 +17,7 @@ buildPythonPackage rec {
owner = "KapJI";
repo = "homeassistant-stubs";
rev = "refs/tags/${version}";
hash = "sha256-+zwhZ5og9OUb31gAZNbMM0ECswopZWKxhU+5lkjwaco=";
hash = "sha256-y1TiexWK5aJRa6Kfcdc8rPr+uueKJ2+4n2q6dCPCWjk=";
};
build-system = [

View File

@ -11562,6 +11562,8 @@ self: super: with self; {
pyopenuv = callPackage ../development/python-modules/pyopenuv { };
pyopenweathermap = callPackage ../development/python-modules/pyopenweathermap { };
pyopnsense = callPackage ../development/python-modules/pyopnsense { };
pyoppleio = callPackage ../development/python-modules/pyoppleio { };
@ -16474,6 +16476,8 @@ self: super: with self; {
uhi = callPackage ../development/python-modules/uhi { };
uiprotect = callPackage ../development/python-modules/uiprotect { };
ujson = callPackage ../development/python-modules/ujson { };
ukkonen = callPackage ../development/python-modules/ukkonen { };