mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
home-assistant: 2024.7.4 -> 2024.8.0
https://www.home-assistant.io/blog/2024/08/07/release-20248/
This commit is contained in:
parent
3d55123591
commit
32fbd1ef59
File diff suppressed because it is too large
Load Diff
@ -126,17 +126,6 @@ let
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
dsmr-parser = super.dsmr-parser.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "1.3.1";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "ndokter";
|
|
||||||
repo = "dsmr_parser";
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
hash = "sha256-PULrKRHrCuDFZcR+5ha0PjkN438QFgf2CrpYhKIqYTs=";
|
|
||||||
};
|
|
||||||
doCheck = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
geojson = super.geojson.overridePythonAttrs (oldAttrs: rec {
|
geojson = super.geojson.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "2.5.0";
|
version = "2.5.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -273,6 +262,19 @@ let
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
pyflume = super.pyflume.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "0.6.5";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ChrisMandich";
|
||||||
|
repo = "PyFlume";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-kIE3y/qlsO9Y1MjEQcX0pfaBeIzCCHk4f1Xa215BBHo=";
|
||||||
|
};
|
||||||
|
dependencies = oldAttrs.propagatedBuildInputs or [] ++ [
|
||||||
|
self.pytz
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
pytibber = super.pytibber.overridePythonAttrs (oldAttrs: rec {
|
pytibber = super.pytibber.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "0.28.2";
|
version = "0.28.2";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -411,16 +413,6 @@ let
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
voluptuous = super.voluptuous.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "0.13.1";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "alecthomas";
|
|
||||||
repo = "voluptuous";
|
|
||||||
rev = "refs/tags/${version}";
|
|
||||||
hash = "sha256-cz3Bd+/yPh+VOHxzi/W+gbDh/H5Nl/n4jvxDOirmAVk=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
# Pinned due to API changes ~1.0
|
# Pinned due to API changes ~1.0
|
||||||
vultr = super.vultr.overridePythonAttrs (oldAttrs: rec {
|
vultr = super.vultr.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "0.1.2";
|
version = "0.1.2";
|
||||||
@ -489,7 +481,7 @@ let
|
|||||||
extraBuildInputs = extraPackages python.pkgs;
|
extraBuildInputs = extraPackages python.pkgs;
|
||||||
|
|
||||||
# Don't forget to run update-component-packages.py after updating
|
# Don't forget to run update-component-packages.py after updating
|
||||||
hassVersion = "2024.7.4";
|
hassVersion = "2024.8.0";
|
||||||
|
|
||||||
in python.pkgs.buildPythonApplication rec {
|
in python.pkgs.buildPythonApplication rec {
|
||||||
pname = "homeassistant";
|
pname = "homeassistant";
|
||||||
@ -507,13 +499,13 @@ in python.pkgs.buildPythonApplication rec {
|
|||||||
owner = "home-assistant";
|
owner = "home-assistant";
|
||||||
repo = "core";
|
repo = "core";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-PHKFQmlwdS0+XpD5Pd+Xwv5KNB2kJKouh9jfBH3aUIU=";
|
hash = "sha256-WGbT53bmyV1d/6GKlv5+bxLmGRqsAHEKbs2halMkPB4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Secondary source is pypi sdist for translations
|
# Secondary source is pypi sdist for translations
|
||||||
sdist = fetchPypi {
|
sdist = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-NJ5gD6k05ahIPCwktJgTz9zczxgnfuLesfjR58fbRL4=";
|
hash = "sha256-RfTkF8HO5bZCupo5vBLbSG2shr+b31GfDN+iJpH5sc8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = with python.pkgs; [
|
build-system = with python.pkgs; [
|
||||||
@ -569,7 +561,6 @@ in python.pkgs.buildPythonApplication rec {
|
|||||||
aiodns
|
aiodns
|
||||||
aiohttp
|
aiohttp
|
||||||
aiohttp-cors
|
aiohttp-cors
|
||||||
aiohttp-fast-url-dispatcher
|
|
||||||
aiohttp-fast-zlib
|
aiohttp-fast-zlib
|
||||||
aiozoneinfo
|
aiozoneinfo
|
||||||
astral
|
astral
|
||||||
|
@ -4,7 +4,7 @@ buildPythonPackage rec {
|
|||||||
# the frontend version corresponding to a specific home-assistant version can be found here
|
# 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
|
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
|
||||||
pname = "home-assistant-frontend";
|
pname = "home-assistant-frontend";
|
||||||
version = "20240710.0";
|
version = "20240806.1";
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
|||||||
pname = "home_assistant_frontend";
|
pname = "home_assistant_frontend";
|
||||||
dist = "py3";
|
dist = "py3";
|
||||||
python = "py3";
|
python = "py3";
|
||||||
hash = "sha256-EP4r59sgrLuK+n3ydq4LMCUS4xsT2XYE2OvK9N+Gd+M=";
|
hash = "sha256-tOM1KFffoPoS3FCdytdkwiptdLwKxpZFQJ4VU3i3WN0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# there is nothing to strip in this package
|
# there is nothing to strip in this package
|
||||||
|
@ -1,12 +1,25 @@
|
|||||||
diff --git a/homeassistant/components/http/static.py b/homeassistant/components/http/static.py
|
diff --git a/homeassistant/components/http/static.py b/homeassistant/components/http/static.py
|
||||||
index e6e773d4c0..b53e0b4a11 100644
|
index 29c5840a4bf..463c723df91 100644
|
||||||
--- a/homeassistant/components/http/static.py
|
--- a/homeassistant/components/http/static.py
|
||||||
+++ b/homeassistant/components/http/static.py
|
+++ b/homeassistant/components/http/static.py
|
||||||
@@ -31,7 +31,6 @@ def _get_file_path(rel_url: str, directory: Path) -> Path | None:
|
@@ -7,6 +7,7 @@ from pathlib import Path
|
||||||
# where the static dir is totally different
|
from typing import Final
|
||||||
raise HTTPForbidden
|
|
||||||
filepath: Path = directory.joinpath(filename).resolve()
|
from aiohttp.hdrs import CACHE_CONTROL, CONTENT_TYPE
|
||||||
- filepath.relative_to(directory)
|
+from aiohttp.typedefs import PathLike
|
||||||
# on opening a dir, load its contents if allowed
|
from aiohttp.web import FileResponse, Request, StreamResponse
|
||||||
if filepath.is_dir():
|
from aiohttp.web_fileresponse import CONTENT_TYPES, FALLBACK_CONTENT_TYPE
|
||||||
return None
|
from aiohttp.web_urldispatcher import StaticResource
|
||||||
|
@@ -21,6 +22,12 @@ RESPONSE_CACHE: LRU[tuple[str, Path], tuple[Path, str]] = LRU(512)
|
||||||
|
class CachingStaticResource(StaticResource):
|
||||||
|
"""Static Resource handler that will add cache headers."""
|
||||||
|
|
||||||
|
+ def __init__(self, prefix: str, directory: PathLike, **kwargs):
|
||||||
|
+ """Allow static files to be hosted behind symlinks."""
|
||||||
|
+ kwargs.update({"follow_symlinks": True})
|
||||||
|
+ super().__init__(prefix, directory, **kwargs)
|
||||||
|
+
|
||||||
|
+
|
||||||
|
async def _handle(self, request: Request) -> StreamResponse:
|
||||||
|
"""Wrap base handler to cache file path resolution and content type guess."""
|
||||||
|
rel_url = request.match_info["filename"]
|
||||||
|
Loading…
Reference in New Issue
Block a user