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.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "albertogeniola"; 19 repo = "MerossIot"; 20 tag = version; 21 hash = "sha256-l0mw/V965JqX/pgcs9ek9dMLzUCGnam0E5Cu8W/HfEU="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 aiohttp 28 paho-mqtt 29 pycryptodomex 30 requests 31 ] 32 ++ aiohttp.optional-dependencies.speedups; 33 34 # Test require network access 35 doCheck = false; 36 37 pythonImportsCheck = [ "meross_iot" ]; 38 39 meta = with lib; { 40 description = "Python library to interact with Meross devices"; 41 homepage = "https://github.com/albertogeniola/MerossIot"; 42 changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}