1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, async_generator
6, paho-mqtt
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "asyncio_mqtt";
12 version = "0.8.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "c1b3bea68a35c83d290a89903079ffb311106195cd56867e201633a1ee1cad0c";
17 };
18
19 propagatedBuildInputs = [
20 paho-mqtt
21 ] ++ lib.optional (pythonOlder "3.7") async_generator;
22
23 doCheck = false; # no tests
24
25 pythonImportsCheck = [ "asyncio_mqtt" ];
26
27 meta = with lib; {
28 description = "Idomatic asyncio wrapper around paho-mqtt";
29 homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
30 license = licenses.bsd3;
31 changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/master/CHANGELOG.md";
32 maintainers = with maintainers; [ hexa ];
33 };
34}