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.3.2";
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-34YfCeJvCGl0dojlSmnGxcboGK0GdcI42DarCG8lbDA=";
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 pytestFlagsArray = [
38 "-m"
39 "'not network'"
40 ];
41
42 meta = with lib; {
43 description = "Idiomatic asyncio MQTT client, wrapped around paho-mqtt";
44 homepage = "https://github.com/sbtinstruments/aiomqtt";
45 changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.tag}/CHANGELOG.md";
46 license = licenses.bsd3;
47 maintainers = [ ];
48 };
49}