2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
2021-10-28 06:52:43 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paho-mqtt";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "1.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eclipse";
|
|
|
|
repo = "paho.mqtt.python";
|
|
|
|
rev = "v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
2021-10-28 06:52:43 +00:00
|
|
|
] ++ lib.optional (!isPy3k) [
|
|
|
|
mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"paho.mqtt"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "MQTT version 3.1.1 client class";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://eclipse.org/paho";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = with maintainers; [ mog dotlambda ];
|
|
|
|
};
|
|
|
|
}
|