From c45a2f9d7568acfe876ea32f88939120e15049b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 9 Feb 2025 13:42:00 -0800 Subject: [PATCH] ha-mqtt-discoverable-cli: pin paho-mqtt to v1 --- .../ha/ha-mqtt-discoverable-cli/package.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ha/ha-mqtt-discoverable-cli/package.nix b/pkgs/by-name/ha/ha-mqtt-discoverable-cli/package.nix index dfa7b6f4cc2e..8007859bf840 100644 --- a/pkgs/by-name/ha/ha-mqtt-discoverable-cli/package.nix +++ b/pkgs/by-name/ha/ha-mqtt-discoverable-cli/package.nix @@ -4,7 +4,16 @@ python3, }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + self = python; + packageOverrides = self: super: { + # https://github.com/unixorn/ha-mqtt-discoverable/pull/310 + paho-mqtt = self.paho-mqtt_1; + }; + }; +in +python.pkgs.buildPythonApplication rec { pname = "ha-mqtt-discoverable-cli"; version = "0.16.4.1"; pyproject = true; @@ -18,9 +27,9 @@ python3.pkgs.buildPythonApplication rec { pythonRelaxDeps = [ "ha-mqtt-discoverable" ]; - build-system = with python3.pkgs; [ poetry-core ]; + build-system = with python.pkgs; [ poetry-core ]; - dependencies = with python3.pkgs; [ ha-mqtt-discoverable ]; + dependencies = with python.pkgs; [ ha-mqtt-discoverable ]; # Project has no real tests doCheck = false;