1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 paho-mqtt, 7 pycryptodomex, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "meross-iot"; 14 version = "0.4.9.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "albertogeniola"; 19 repo = "MerossIot"; 20 tag = version; 21 hash = "sha256-EBsWEsP7SzhDbMayD2903T5Q2WDJKboVtyYY4xP8AOE="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 aiohttp 28 paho-mqtt 29 pycryptodomex 30 requests 31 ] ++ aiohttp.optional-dependencies.speedups; 32 33 # Test require network access 34 doCheck = false; 35 36 pythonImportsCheck = [ "meross_iot" ]; 37 38 meta = with lib; { 39 description = "Python library to interact with Meross devices"; 40 homepage = "https://github.com/albertogeniola/MerossIot"; 41 changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}