2023-08-02 18:36:50 +00:00
|
|
|
{ lib
|
2023-08-13 09:38:21 +00:00
|
|
|
, anyio
|
2023-08-02 18:36:50 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-08-13 09:38:21 +00:00
|
|
|
, paho-mqtt
|
2023-08-02 18:36:50 +00:00
|
|
|
, poetry-core
|
|
|
|
, poetry-dynamic-versioning
|
|
|
|
, pytestCheckHook
|
2023-08-13 09:38:21 +00:00
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2023-08-02 18:36:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomqtt";
|
2024-03-14 02:06:10 +00:00
|
|
|
version = "2.0.1";
|
2023-08-02 18:36:50 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-09-09 07:42:34 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-08-13 09:38:21 +00:00
|
|
|
|
2023-08-02 18:36:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sbtinstruments";
|
|
|
|
repo = "aiomqtt";
|
2023-08-13 09:38:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-03-14 02:06:10 +00:00
|
|
|
hash = "sha256-bV1elEO1518LVLwNDN5pzjxRgcG34K1XUsK7fTw8h+8=";
|
2023-08-02 18:36:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
paho-mqtt
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
anyio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-08-13 09:38:21 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiomqtt"
|
|
|
|
];
|
|
|
|
|
2023-08-02 18:36:50 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-m" "'not network'"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The idiomatic asyncio MQTT client, wrapped around paho-mqtt";
|
|
|
|
homepage = "https://github.com/sbtinstruments/aiomqtt";
|
2024-01-19 17:38:51 +00:00
|
|
|
changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.rev}/CHANGELOG.md";
|
2023-08-02 18:36:50 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|