mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 12:23:55 +00:00
1fd9c06c6e
https://github.com/eclipse/paho.mqtt.python/compare/v1.6.1...v2.1.0 https://github.com/eclipse/paho.mqtt.python/blob/v2.1.0/ChangeLog.txt The ecosystem is still too fragile to promote paho-mqtt 2.x to the version used in the python package set, but we can provide 2.x for applications in nixpkgs. Co-Authored-By: Robert Scott <code@humanleg.org.uk> Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
43 lines
771 B
Nix
43 lines
771 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
isPy3k,
|
|
pytestCheckHook,
|
|
mock,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paho-mqtt";
|
|
version = "1.6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eclipse";
|
|
repo = "paho.mqtt.python";
|
|
rev = "v${version}";
|
|
hash = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
six
|
|
] ++ lib.optionals (!isPy3k) [ mock ];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
pythonImportsCheck = [ "paho.mqtt" ];
|
|
|
|
meta = with lib; {
|
|
description = "MQTT version 3.1.1 client class";
|
|
homepage = "https://eclipse.org/paho";
|
|
license = licenses.epl10;
|
|
maintainers = with maintainers; [
|
|
mog
|
|
dotlambda
|
|
];
|
|
};
|
|
}
|