From 9838539e4175d57d4e13979aa0b4f3eedd01f384 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Jan 2025 22:29:52 +0100 Subject: [PATCH] python313Packages.home-assistant-chip-wheels: use correct python version Referring to python3 will choose the default python version, which is different from the python version that matches the package set. When in python3Packages, always use python, not python3. --- .../python-modules/home-assistant-chip-wheels/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix b/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix index 469905525324..16c51f4e537a 100644 --- a/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix +++ b/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix @@ -42,7 +42,7 @@ pylint, pyperclip, pyserial, - python3, + python, python-daemon, pyyaml, requests, @@ -85,7 +85,7 @@ stdenv.mkDerivation rec { # Initialize only necessary submodules. cd connectedhomeip - ${python3}/bin/python3 scripts/checkout_submodules.py --platform linux --shallow + ${python.interpreter} scripts/checkout_submodules.py --platform linux --shallow # Keep the output deterministic. cd $out @@ -105,7 +105,7 @@ stdenv.mkDerivation rec { zap-chip # gdbus-codegen glib - python3 + python # dependencies of build scripts click jinja2 @@ -254,7 +254,7 @@ stdenv.mkDerivation rec { ''chip_config_memory_debug_dmalloc=false'' ''chip_mdns="minimal"'' ''chip_minmdns_default_policy="libnl"'' - ''chip_python_version="${lib.versions.majorMinor python3.version}"'' + ''chip_python_version="${lib.versions.majorMinor python.version}"'' ''chip_python_platform_tag="any"'' ''chip_python_package_prefix="home-assistant-chip"'' ''custom_toolchain="custom"''