{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, paho-mqtt, setuptools, }: buildPythonPackage rec { pname = "pyeconet"; version = "0.2.0"; pyproject = true; src = fetchFromGitHub { owner = "w1ll1am23"; repo = "pyeconet"; tag = "v${version}"; hash = "sha256-Q0J1UUvifdf1ePFz4G3Tk0bn1TnnWaHQRABgsohHvB0="; }; build-system = [ setuptools ]; pythonRelaxDeps = [ "paho-mqtt" ]; dependencies = [ paho-mqtt aiohttp ]; # Tests require credentials doCheck = false; pythonImportsCheck = [ "pyeconet" ]; meta = { description = "Python interface to the EcoNet API"; homepage = "https://github.com/w1ll1am23/pyeconet"; changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }