Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.paho-mqtt_2: init at 2.1.0 #325122

Merged
merged 4 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions pkgs/development/python-modules/aiomysensors/default.nix

This file was deleted.

71 changes: 0 additions & 71 deletions pkgs/development/python-modules/asyncio-mqtt/default.nix

This file was deleted.

42 changes: 42 additions & 0 deletions pkgs/development/python-modules/paho-mqtt/1.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
isPy3k,
pytestCheckHook,
mock,
six,
}:

buildPythonPackage rec {
pname = "paho-mqtt";
version = "1.6.1";
format = "setuptools";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
format = "setuptools";
pyproject = true;


src = fetchFromGitHub {
owner = "eclipse";
repo = "paho.mqtt.python";
rev = "v${version}";
hash = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
};

nativeCheckInputs = [
pytestCheckHook
six
] ++ lib.optionals (!isPy3k) [ mock ];

doCheck = !stdenv.isDarwin;

pythonImportsCheck = [ "paho.mqtt" ];

meta = with lib; {
description = "MQTT version 3.1.1 client class";
homepage = "https://eclipse.org/paho";
license = licenses.epl10;
maintainers = with maintainers; [
mog
dotlambda
];
};
}
41 changes: 30 additions & 11 deletions pkgs/development/python-modules/paho-mqtt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,57 @@
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
isPy3k,
hatchling,
pytestCheckHook,
mock,
six,
}:

buildPythonPackage rec {
let
testing = fetchFromGitHub {
owner = "eclipse";
repo = "paho.mqtt.testing";
rev = "a4dc694010217b291ee78ee13a6d1db812f9babd";
hash = "sha256-SQoNdkWMjnasPjpXQF2yV97MUra8gb27pc3rNoA8Rjw=";
};
in buildPythonPackage rec {
pname = "paho-mqtt";
version = "1.6.1";
format = "setuptools";
version = "2.1.0";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "eclipse";
repo = "paho.mqtt.python";
rev = "v${version}";
hash = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
hash = "sha256-VMq+WTW+njK34QUUTE6fR2j2OmHxVzR0wrC92zYb1rY=";
};

build-system = [
hatchling
];

nativeCheckInputs = [
pytestCheckHook
six
] ++ lib.optionals (!isPy3k) [ mock ];
];

doCheck = !stdenv.isDarwin;

pythonImportsCheck = [ "paho.mqtt" ];

preCheck = ''
ln -s ${testing} paho.mqtt.testing

# paho.mqtt not in top-level dir to get caught by this
export PYTHONPATH=".:$PYTHONPATH"
'';

meta = with lib; {
description = "MQTT version 3.1.1 client class";
changelog = "https://github.com/eclipse/paho.mqtt.python/blob/${src.rev}/ChangeLog.txt";
description = "MQTT version 5.0/3.1.1 client class";
homepage = "https://eclipse.org/paho";
license = licenses.epl10;
license = licenses.epl20;
maintainers = with maintainers; [
mog
dotlambda
Expand Down
3 changes: 2 additions & 1 deletion pkgs/tools/security/ospd-openvas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ python3.pkgs.buildPythonApplication rec {
};

pythonRelaxDeps = [
"defusedxml"
"packaging"
"psutil"
"python-gnupg"
];

build-system = with python3.pkgs; [ poetry-core ];


propagatedBuildInputs = with python3.pkgs; [
defusedxml
deprecated
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ mapAliases ({
acebinf = throw "acebinf has been removed because it is abandoned and broken."; # Added 2023-05-19
adafruit-nrfutil = throw "adafruit-nrfutil has been promoted to a top-level attribute name: `pkgs.adafruit-nrfutil`."; # Added 2023-11-19
aioaladdinconnect = throw "aioaladdinconnect has been removed, as the API is supported was obsoleted on 2024-01-24."; # Added 2024-06-07
aiomysensors = throw "aiomysensors has been removed, as it was packaged for Home Assistant, which migrated to pymysensors."; # Added 2024-07-07
aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30
aionotify = throw "aionotify has been removed because is unmaintained and incompatible with python3.11."; # Added 2023-10-27
aiosenseme = throw "aiosenseme has been removed, because it does no longer work with the latest firmware and has become unmaintained"; # Added 2023-07-05
Expand All @@ -53,6 +54,7 @@ mapAliases ({
APScheduler = apscheduler; # added 2023-02-19
async_generator = async-generator; # added 2023-08-08
async_stagger = async-stagger; # added 2023-08-08
asyncio-mqtt = throw "asyncio-mqtt has been replaced by aiomqtt, which is not API compatible."; # added 2024-07-07
asyncio-nats-client = nats-py; # added 2022-02-08
atsim_potentials = atsim-potentials; # added 2023-10-08
awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13
Expand Down
8 changes: 3 additions & 5 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,6 @@ self: super: with self; {

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

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

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

aionanoleaf = callPackage ../development/python-modules/aionanoleaf { };
Expand Down Expand Up @@ -889,8 +887,6 @@ self: super: with self; {

asyncio-dgram = callPackage ../development/python-modules/asyncio-dgram { };

asyncio-mqtt = callPackage ../development/python-modules/asyncio-mqtt { };

asyncio-rlock = callPackage ../development/python-modules/asyncio-rlock { };

asyncmy = callPackage ../development/python-modules/asyncmy { };
Expand Down Expand Up @@ -9555,7 +9551,9 @@ self: super: with self; {

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

paho-mqtt = callPackage ../development/python-modules/paho-mqtt { };
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;

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

Expand Down