@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPy3k
2+, transitions, websockets, passlib, docopt, pyyaml, nose }:
3+
4+buildPythonPackage rec {
5+ pname = "hbmqtt";
6+ version = "0.9.1";
7+
8+ disabled = !isPy3k;
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "04lqqcy84f9gcwqhrlvzp689r3mkdd8ipsnfzw8gryfny4lh8wrx";
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+}