From 2d29bf70741b8945dfd405535569c4824c4972a1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 Jun 2023 00:33:13 +0200 Subject: [PATCH] home-assistant: migrate to python311 Support for 3.10 will run out in 2023.8.0, and ideally we'll be ahead of the curve. --- pkgs/servers/home-assistant/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 0c0b34712a5a..b186ea46bb32 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -3,7 +3,7 @@ , callPackage , fetchFromGitHub , fetchPypi -, python3 +, python311 , substituteAll , ffmpeg-headless , inetutils @@ -278,7 +278,7 @@ let }) ]; - python = python3.override { + python = python311.override { packageOverrides = lib.composeManyExtensions (defaultOverrides ++ [ packageOverrides ]); }; @@ -323,7 +323,7 @@ in python.pkgs.buildPythonApplication rec { hash = "sha256-0rhjh/mIevRdisWvTSx9QQjHdY7nMVpuGyTr9sChipk="; }; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ setuptools ]; @@ -479,7 +479,7 @@ in python.pkgs.buildPythonApplication rec { getPackages python supportedComponentsWithTests; - pythonPath = python3.pkgs.makePythonPath (componentBuildInputs ++ extraBuildInputs); + pythonPath = python.pkgs.makePythonPath (componentBuildInputs ++ extraBuildInputs); frontend = python.pkgs.home-assistant-frontend; intents = python.pkgs.home-assistant-intents; tests = {