1{
2 lib,
3 anyio,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 paho-mqtt,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "aiomqtt";
14 version = "2.4.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "sbtinstruments";
21 repo = "aiomqtt";
22 tag = "v${version}";
23 hash = "sha256-b7kCLpJzZGx8YpC0M4O4fqFh3xP73CXFWbKaggD6bOI=";
24 };
25
26 build-system = [ hatchling ];
27
28 dependencies = [ paho-mqtt ];
29
30 nativeCheckInputs = [
31 anyio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "aiomqtt" ];
36
37 disabledTestMarks = [
38 "network"
39 ];
40
41 meta = with lib; {
42 description = "Idiomatic asyncio MQTT client, wrapped around paho-mqtt";
43 homepage = "https://github.com/sbtinstruments/aiomqtt";
44 changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.tag}/CHANGELOG.md";
45 license = licenses.bsd3;
46 maintainers = [ ];
47 };
48}