depot/third_party/nixpkgs/pkgs/development/python-modules/paho-mqtt/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

42 lines
757 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 ];
};
}