nixpkgs/pkgs/development/python-modules/hbmqtt/default.nix

30 lines
746 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy3k
2018-01-27 11:45:34 +03:00
, transitions, websockets, passlib, docopt, pyyaml, nose }:
buildPythonPackage rec {
pname = "hbmqtt";
2018-11-04 19:44:46 +03:00
version = "0.9.4";
2018-01-27 11:45:34 +03:00
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2018-11-04 19:44:46 +03:00
sha256 = "48f2f3ef2beb9924a4c2c10263630e65cf8d11f72c812748a0b2c1b09499602b";
2018-01-27 11:45:34 +03:00
};
propagatedBuildInputs = [ transitions websockets passlib docopt pyyaml ];
checkInputs = [ nose ];
checkPhase = ''
nosetests -e test_connect_tcp
'';
meta = with stdenv.lib; {
homepage = https://github.com/beerfactory/hbmqtt;
description = "MQTT client/broker using Python asynchronous I/O";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}