mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
7e49471316
the argument to optional should not be list
42 lines
728 B
Nix
42 lines
728 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, pytestCheckHook
|
|
, mock
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paho-mqtt";
|
|
version = "1.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eclipse";
|
|
repo = "paho.mqtt.python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg=";
|
|
};
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|