2018-10-17 15:24:34 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
2019-04-23 02:18:28 +01:00
|
|
|
, stdenv, pytestrunner, pytest, mock }:
|
2018-10-17 15:24:34 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paho-mqtt";
|
2019-11-02 20:30:57 +00:00
|
|
|
version = "1.5.0";
|
2018-10-17 15:24:34 +01:00
|
|
|
|
|
|
|
# No tests in PyPI tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eclipse";
|
|
|
|
repo = "paho.mqtt.python";
|
|
|
|
rev = "v${version}";
|
2019-11-02 20:30:57 +00:00
|
|
|
sha256 = "1fq5z53g2k18iiqnz5qq87vzjpppfza072nx0dwllmhimm2dskh5";
|
2018-10-17 15:24:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "pylama" ""
|
|
|
|
substituteInPlace setup.cfg --replace "--pylama" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytestrunner pytest ] ++ lib.optional (!isPy3k) mock;
|
|
|
|
|
2019-04-23 02:18:28 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-10-17 15:24:34 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://eclipse.org/paho";
|
2018-10-17 15:24:34 +01:00
|
|
|
description = "MQTT version 3.1.1 client class";
|
|
|
|
license = licenses.epl10;
|
|
|
|
maintainers = with maintainers; [ mog dotlambda ];
|
|
|
|
};
|
|
|
|
}
|