aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix24
1 files changed, 8 insertions, 16 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix b/infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix
index e2a7df26efee..bc0622e4f554 100644
--- a/infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/servers/home-assistant/default.nix
@@ -24,11 +24,6 @@ let
(mkOverride "astral" "1.10.1"
"d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1")
- # Pinned due to an API change in pyowm>=3.0
- # Remove after https://github.com/home-assistant/core/pull/39839 gets merged
- (mkOverride "pyowm" "2.10.0"
- "1xvcv3sbcn9na8cwz21nnjlixysfk5lymnf65d1nqkbgacc1mm4g")
-
# Pinned, because v1.5.0 broke the google_translate integration
# https://github.com/home-assistant/core/pull/38428
(mkOverride "yarl" "1.4.2"
@@ -67,7 +62,7 @@ let
extraBuildInputs = extraPackages py.pkgs;
# Don't forget to run parse-requirements.py after updating
- hassVersion = "0.116.4";
+ hassVersion = "0.118.5";
in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant";
@@ -83,28 +78,25 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant";
repo = "core";
rev = version;
- sha256 = "1wcr2afvq1l6xlws3jgzfyh4kx61i0x9n985fiq3ls29w9lpshk4";
+ sha256 = "1711qhcvrzl599cryd9wzamacn1vv37w67vprqgibnbw58kcpilj";
};
- patches = [
- (fetchpatch {
- # Fix group tests when run in parallel, remove >= 0.117.0
- url = "https://github.com/home-assistant/core/pull/41446/commits/c79dc478b7136b6df43707bf0ad6b53419c8a909.patch";
- sha256 = "1cl81swq960vd2f733dcqq60c0jjzrkm0l2sibcblhmyw597b4vj";
- })
- ];
+ # leave this in, so users don't have to constantly update their downstream patch handling
+ patches = [];
postPatch = ''
substituteInPlace setup.py \
+ --replace "aiohttp==3.7.1" "aiohttp>=3.6.3" \
--replace "bcrypt==3.1.7" "bcrypt>=3.1.7" \
- --replace "cryptography==2.9.2" "cryptography" \
+ --replace "cryptography==3.2" "cryptography" \
+ --replace "requests==2.25.0" "requests>=2.24.0" \
--replace "ruamel.yaml==0.15.100" "ruamel.yaml>=0.15.100"
substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
'';
propagatedBuildInputs = [
# From setup.py
- aiohttp astral async-timeout attrs bcrypt certifi ciso8601 jinja2
+ aiohttp astral async-timeout attrs bcrypt certifi ciso8601 httpx jinja2
pyjwt cryptography pip python-slugify pytz pyyaml requests ruamel_yaml
setuptools voluptuous voluptuous-serialize yarl
# From default_config. frontend, http, image, mobile_app and recorder components as well as