1{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy3k 2, transitions, websockets, passlib, docopt, pyyaml, nose }: 3 4buildPythonPackage rec { 5 pname = "hbmqtt"; 6 version = "0.9.2"; 7 8 disabled = !isPy3k; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "6f61e05007648a4f33e300fafcf42776ca95508ba1141799f94169427ce5018c"; 13 }; 14 15 patches = [ 16 (fetchpatch { 17 url = "https://github.com/beerfactory/hbmqtt/commit/75a85d1ea4cb41f2a15f2681d3114da7158942ae.patch"; 18 sha256 = "0bl4v5zxp4kz2w7riwrx48f7yqmp7pxg79g9qavkda0i85lxswnp"; 19 }) 20 ]; 21 22 propagatedBuildInputs = [ transitions websockets passlib docopt pyyaml ]; 23 24 checkInputs = [ nose ]; 25 26 checkPhase = '' 27 nosetests -e test_connect_tcp 28 ''; 29 30 meta = with stdenv.lib; { 31 homepage = https://github.com/beerfactory/hbmqtt; 32 description = "MQTT client/broker using Python asynchronous I/O"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ dotlambda ]; 35 }; 36}