git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34322 from dotlambda/hbmqtt

pythonPackages.hbmqtt: init at 0.9.1

commitbc59ebd30e9465be9581160d5a53454f695c816d authorAndreas Rammhold <andreas@rammhold.de> dateMon 29 Jan 2018, 11:51 (9 years ago) parent557284df2a5b2f
3 files changed+64
pkgs/development/python-modules/hbmqtt/default.nix+29 pkgs/development/python-modules/transitions/default.nix+31 pkgs/top-level/python-packages.nix+4
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 {
50905090 then callPackage ../development/python-modules/gurobipy/linux.nix {}
50915091 else throw "gurobipy not yet supported on ${stdenv.system}";
50925092
5093+ hbmqtt = callPackage ../development/python-modules/hbmqtt { };
5094+
50935095 helper = buildPythonPackage rec {
50945096 pname = "helper";
50955097 version = "2.4.1";
@@ -17495,6 +17497,8 @@ in {
1749517497
1749617498 traitlets = callPackage ../development/python-modules/traitlets { };
1749717499
17500+ transitions = callPackage ../development/python-modules/transitions { };
17501+
1749817502 python_mimeparse = buildPythonPackage rec {
1749917503 name = "python-mimeparse-${version}";
1750017504 version = "0.1.4";