mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
python.pkgs.paho-mqtt: 1.1 -> 1.4.0
This commit is contained in:
parent
e964c2dda6
commit
4e20de39ab
29
pkgs/development/python-modules/paho-mqtt/default.nix
Normal file
29
pkgs/development/python-modules/paho-mqtt/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
, pytestrunner, pytest, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paho-mqtt";
|
||||
version = "1.4.0";
|
||||
|
||||
# No tests in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "eclipse";
|
||||
repo = "paho.mqtt.python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1xg9ppz2lqacd9prsrx93q2wfkjjyla03xlfw74aj1alz9ki5hrs";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "pylama" ""
|
||||
substituteInPlace setup.cfg --replace "--pylama" ""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestrunner pytest ] ++ lib.optional (!isPy3k) mock;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://eclipse.org/paho;
|
||||
description = "MQTT version 3.1.1 client class";
|
||||
license = licenses.epl10;
|
||||
maintainers = with maintainers; [ mog dotlambda ];
|
||||
};
|
||||
}
|
@ -8730,24 +8730,7 @@ in {
|
||||
|
||||
bottleneck = callPackage ../development/python-modules/bottleneck { };
|
||||
|
||||
paho-mqtt = buildPythonPackage rec {
|
||||
name = "paho-mqtt-${version}";
|
||||
version = "1.1";
|
||||
|
||||
disabled = isPyPy;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/paho-mqtt/${name}.tar.gz";
|
||||
sha256 = "07i6k9mw66kgbvjgsrcsd2sjji9ckym50dcxnmhjqfkfzsg64yhg";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://eclipse.org/paho/";
|
||||
description = "mqtt library for machine to machine and internet of things";
|
||||
license = licenses.epl10;
|
||||
maintainers = with maintainers; [ mog ];
|
||||
};
|
||||
};
|
||||
paho-mqtt = callPackage ../development/python-modules/paho-mqtt { };
|
||||
|
||||
pamqp = buildPythonPackage rec {
|
||||
version = "1.6.1";
|
||||
|
Loading…
Reference in New Issue
Block a user