Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 734 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, 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 propagatedBuildInputs = [ transitions websockets passlib docopt pyyaml ]; 16 17 checkInputs = [ nose ]; 18 19 checkPhase = '' 20 nosetests -e test_connect_tcp 21 ''; 22 23 meta = with stdenv.lib; { 24 homepage = https://github.com/beerfactory/hbmqtt; 25 description = "MQTT client/broker using Python asynchronous I/O"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ dotlambda ]; 28 }; 29}