2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, paho-mqtt
|
2022-11-04 12:27:35 +00:00
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "asyncio-mqtt";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.13.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sbtinstruments";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-On4N5KPnbwYrJguWwBdrnaNq58ZeGIPYSFzIRBfojpQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
paho-mqtt
|
2022-11-04 12:27:35 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.10") [
|
|
|
|
typing-extensions
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
# Module will have tests starting with > 0.13.0
|
|
|
|
doCheck = false;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncio_mqtt"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Idomatic asyncio wrapper around paho-mqtt";
|
|
|
|
homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/master/CHANGELOG.md";
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|