14 buildPythonPackage rec {
15 pname = "asyncio-mqtt";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
22 owner = "sbtinstruments";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-f3JqocjOEwNjo6Uv17ij6oEdrjb6Z2wTzdhdVhx46iM=";
34 propagatedBuildInputs = [
36 ] ++ lib.optionals (pythonOlder "3.10") [
45 pythonImportsCheck = [
50 # Tests require network access
51 "test_client_filtered_messages"
53 "test_client_max_concurrent_outgoing_calls"
54 "test_client_no_pending_calls_warnings_with_max_concurrent_outgoing_calls"
55 "test_client_pending_calls_threshold"
56 "test_client_tls_context"
57 "test_client_tls_params"
58 "test_client_unfiltered_messages"
59 "test_client_unsubscribe"
60 "test_client_username_password "
61 "test_client_websockets"
63 "test_multiple_messages_generators"
66 # newer version are packaged as aiomqtt
67 passthru.skipBulkUpdate = true;
70 description = "Idomatic asyncio wrapper around paho-mqtt";
71 homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
72 license = licenses.bsd3;
73 changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/v${version}/CHANGELOG.md";
74 maintainers = with maintainers; [ hexa ];