Skip to content

Commit

Permalink
python313Packages.paho-mqtt: 1.6.1 -> 2.1.0 (#380736)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Feb 10, 2025
2 parents acafb0e + 19f7ed2 commit 2cddee3
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 11 deletions.
1 change: 0 additions & 1 deletion pkgs/by-name/fr/frigate/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ let
python = python312.override {
self = python;
packageOverrides = self: super: {
paho-mqtt = super.paho-mqtt_2;
};
};

Expand Down
15 changes: 12 additions & 3 deletions pkgs/by-name/ha/ha-mqtt-discoverable-cli/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/mq/mqtt-exporter/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ python3.pkgs.buildPythonApplication rec {
build-system = with python3.pkgs; [ setuptools ];

dependencies = with python3.pkgs; [
paho-mqtt_2
paho-mqtt
prometheus-client
];

Expand Down
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/amshan/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

buildPythonPackage rec {
pname = "amshan";
version = "2021.12.1";
version = "2.1.1";
pyproject = true;

src = fetchFromGitHub {
owner = "toreamun";
repo = "amshan";
tag = version;
hash = "sha256-eL8YzQB6Vj4l3cYFgWve88vLojvcxMtr2xvTUKT+Ekk=";
rev = version;
hash = "sha256-aw0wTqb2s84STVUN55h6L926pXwaMSppBCfXZVb87w0=";
};

build-system = [
Expand All @@ -37,6 +37,9 @@ buildPythonPackage rec {

pythonImportsCheck = [ "han" ];

# 2021.12.1 is an older version
passthru.skipBulkUpdate = true;

meta = {
description = "Decode smart power meter data stream of Cosem HDLC frames used by MBUS";
longDescription = ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/azure-iot-device/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ buildPythonPackage rec {
];

meta = with lib; {
# https://github.com/Azure/azure-iot-sdk-python/issues/1196
broken = lib.versionAtLeast paho-mqtt.version "2";
description = "Microsoft Azure IoT Device Library for Python";
homepage = "https://github.com/Azure/azure-iot-sdk-python";
license = licenses.mit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ha_mqtt_discoverable" ];

meta = with lib; {
# https://github.com/unixorn/ha-mqtt-discoverable/pull/310
broken = lib.versionAtLeast paho-mqtt.version "2";
description = "Python module to create MQTT entities that are automatically discovered by Home Assistant";
homepage = "https://github.com/unixorn/ha-mqtt-discoverable";
changelog = "https://github.com/unixorn/ha-mqtt-discoverable/releases/tag/v${version}";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/meross-iot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "meross_iot" ];

meta = with lib; {
# https://github.com/albertogeniola/MerossIot/pull/413
broken = lib.versionAtLeast paho-mqtt.version "2";
description = "Python library to interact with Meross devices";
homepage = "https://github.com/albertogeniola/MerossIot";
changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/weconnect-mqtt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt_2,
paho-mqtt,
pytest-cov-stub,
pytestCheckHook,
python-dateutil,
Expand Down Expand Up @@ -39,7 +39,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];

dependencies = [
paho-mqtt_2
paho-mqtt
python-dateutil
weconnect
] ++ weconnect.optional-dependencies.Images;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10046,7 +10046,7 @@ self: super: with self; {

paho-mqtt_1 = callPackage ../development/python-modules/paho-mqtt/1.nix { };
paho-mqtt_2 = callPackage ../development/python-modules/paho-mqtt/default.nix { };
paho-mqtt = paho-mqtt_1;
paho-mqtt = paho-mqtt_2;

paintcompiler = callPackage ../development/python-modules/paintcompiler { };

Expand Down

0 comments on commit 2cddee3

Please sign in to comment.