git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34322 from dotlambda/hbmqtt
bc59ebdAndreas Rammhold
pkgs/development/python-modules/hbmqtt/default.nixnew file+29
@@ -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+}
pkgs/development/python-modules/transitions/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, six, nose, mock, dill, pycodestyle }:
3+
4+buildPythonPackage rec {
5+ pname = "transitions";
6+ version = "0.6.4";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1ikxsjg7vil0yhiwhiimnjzcb1ig6g6g79sdhs9v8rnrszk1mi2n";
11+ };
12+
13+ postPatch = ''
14+ substituteInPlace setup.py --replace "dill<0.2.7" dill
15+ '';
16+
17+ propagatedBuildInputs = [ six ];
18+
19+ checkInputs = [ nose mock dill pycodestyle ];
20+
21+ checkPhase = ''
22+ nosetests
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ homepage = https://github.com/pytransitions/transitions;
27+ description = "A lightweight, object-oriented finite state machine implementation in Python";
28+ license = licenses.mit;
29+ maintainers = with maintainers; [ dotlambda ];
30+ };
31+}
pkgs/top-level/python-packages.nix+4
@@ -5090,6 +5090,8 @@ in {
5090 then callPackage ../development/python-modules/gurobipy/linux.nix {}
5090 then callPackage ../development/python-modules/gurobipy/linux.nix {}
5091 else throw "gurobipy not yet supported on ${stdenv.system}";
5091 else throw "gurobipy not yet supported on ${stdenv.system}";
5092
5092
5093+ hbmqtt = callPackage ../development/python-modules/hbmqtt { };
5094+
5093 helper = buildPythonPackage rec {
5095 helper = buildPythonPackage rec {
5094 pname = "helper";
5096 pname = "helper";
5095 version = "2.4.1";
5097 version = "2.4.1";
@@ -17495,6 +17497,8 @@ in {
17495
17497
17496 traitlets = callPackage ../development/python-modules/traitlets { };
17498 traitlets = callPackage ../development/python-modules/traitlets { };
17497
17499
17500+ transitions = callPackage ../development/python-modules/transitions { };
17501+
17498 python_mimeparse = buildPythonPackage rec {
17502 python_mimeparse = buildPythonPackage rec {
17499 name = "python-mimeparse-${version}";
17503 name = "python-mimeparse-${version}";
17500 version = "0.1.4";
17504 version = "0.1.4";