{ lib, bleak, bleak-retry-connector, boto3, buildPythonPackage, cryptography, fetchFromGitHub, pyopenssl, pythonOlder, pytest-asyncio, pytestCheckHook, requests, setuptools, }: buildPythonPackage rec { pname = "pyswitchbot"; version = "0.68.3"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pySwitchbot"; tag = version; hash = "sha256-PMwXaOIEUuJcZ8D7xuOfwTqYStqynu30wS0wWHyc2WI="; }; build-system = [ setuptools ]; dependencies = [ bleak bleak-retry-connector boto3 cryptography pyopenssl requests ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; pythonImportsCheck = [ "switchbot" ]; meta = with lib; { description = "Python library to control Switchbot IoT devices"; homepage = "https://github.com/Danielhiversen/pySwitchbot"; changelog = "https://github.com/Danielhiversen/pySwitchbot/releases/tag/${src.tag}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; platforms = platforms.linux; }; }