81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
46 lines
856 B
Nix
46 lines
856 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, paho-mqtt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, retrying
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meross-iot";
|
|
version = "0.4.4.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "albertogeniola";
|
|
repo = "MerossIot";
|
|
rev = version;
|
|
sha256 = "sha256-bazAhCsxr8UNV51UnaGbP7kTC6mcDNM7N78f0jy26ew=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|