2021-12-21 02:18:32 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, paho-mqtt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, retrying
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meross-iot";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "0.4.4.3";
|
2021-12-21 02:18:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "albertogeniola";
|
|
|
|
repo = "MerossIot";
|
|
|
|
rev = version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-qff8dB8q4NS7ZYQDIzD1dXOZL/UBGACSBuPDla1okA8=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
paho-mqtt
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"meross_iot"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interact with Meross devices";
|
|
|
|
homepage = "https://github.com/albertogeniola/MerossIot";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|