{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, poetry-core, }: buildPythonPackage rec { pname = "switchbot-api"; version = "2.9.0"; pyproject = true; src = fetchFromGitHub { owner = "SeraphicCorp"; repo = "py-switchbot-api"; tag = "v${version}"; hash = "sha256-G5cUpX89KC6C4295wbvyeYWvUob4LdHiJjcN0UbVJnY="; }; build-system = [ poetry-core ]; dependencies = [ aiohttp ]; # Module has no tests doCheck = false; pythonImportsCheck = [ "switchbot_api" ]; meta = { description = "Asynchronous library to use Switchbot API"; homepage = "https://github.com/SeraphicCorp/py-switchbot-api"; changelog = "https://github.com/SeraphicCorp/py-switchbot-api/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }