2021-02-03 20:28:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, async_generator
|
|
|
|
, paho-mqtt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-08 23:41:12 +00:00
|
|
|
pname = "asyncio-mqtt";
|
|
|
|
version = "0.11.0";
|
|
|
|
format = "setuptools";
|
2021-02-03 20:28:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-11-08 23:41:12 +00:00
|
|
|
pname = "asyncio_mqtt";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "sha256-uJown3bNA+pLJlorJcCjpMMFosX94gt/2tLAjIkuXLA=";
|
2021-02-03 20:28:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
paho-mqtt
|
2021-11-08 23:41:12 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.7") [
|
|
|
|
async_generator
|
|
|
|
];
|
2021-02-03 20:28:54 +00:00
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "asyncio_mqtt" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Idomatic asyncio wrapper around paho-mqtt";
|
|
|
|
homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/master/CHANGELOG.md";
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|