2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
paho-mqtt,
|
|
|
|
pythonOlder,
|
|
|
|
pycryptodomex,
|
|
|
|
requests,
|
|
|
|
retrying,
|
|
|
|
setuptools,
|
2021-12-21 02:18:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meross-iot";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.7.3";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "albertogeniola";
|
|
|
|
repo = "MerossIot";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Ne9m6umPmX3uXAyY9/Ucvi/rPdHrGJgD5IrZ+BBQweI=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2021-12-21 02:18:32 +00:00
|
|
|
aiohttp
|
|
|
|
paho-mqtt
|
2024-05-15 15:35:15 +00:00
|
|
|
pycryptodomex
|
2021-12-21 02:18:32 +00:00
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
];
|
|
|
|
|
|
|
|
# Test require network access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "meross_iot" ];
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interact with Meross devices";
|
|
|
|
homepage = "https://github.com/albertogeniola/MerossIot";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}";
|
2021-12-21 02:18:32 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|