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