2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, pythonAtLeast, setuptools
|
2018-01-27 08:45:34 +00:00
|
|
|
, transitions, websockets, passlib, docopt, pyyaml, nose }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hbmqtt";
|
2020-02-01 19:50:43 +00:00
|
|
|
version = "0.9.6";
|
2018-01-27 08:45:34 +00:00
|
|
|
|
2021-01-22 18:56:12 +00:00
|
|
|
# https://github.com/beerfactory/hbmqtt/issues/223
|
|
|
|
disabled = !isPy3k || pythonAtLeast "3.9";
|
2018-01-27 08:45:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-01 19:50:43 +00:00
|
|
|
sha256 = "1n9c8yj11npiq9qxivwmfhib1qkjpcyw42a7q0w641bdrz3x6r37";
|
2018-01-27 08:45:34 +00:00
|
|
|
};
|
|
|
|
|
2020-11-07 05:56:53 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
transitions websockets passlib docopt pyyaml setuptools
|
|
|
|
];
|
2018-01-27 08:45:34 +00:00
|
|
|
|
2019-12-01 10:34:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
# test tries to bind same port multiple times and fails
|
|
|
|
rm tests/test_client.py
|
|
|
|
'';
|
|
|
|
|
2018-01-27 08:45:34 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -e test_connect_tcp
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/beerfactory/hbmqtt";
|
2018-01-27 08:45:34 +00:00
|
|
|
description = "MQTT client/broker using Python asynchronous I/O";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|