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";
|
2024-05-07 09:53:37 +00:00
|
|
|
pyproject = true;
|
2023-08-02 18:36:50 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2024-05-07 09:53:37 +00:00
|
|
|
build-system = [
|
2023-08-02 18:36:50 +00:00
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
2024-05-07 09:53:37 +00:00
|
|
|
dependencies = [
|
2023-08-02 18:36:50 +00:00
|
|
|
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 = "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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-08-02 18:36:50 +00:00
|
|
|
};
|
|
|
|
}
|