{ lib , bleak , bleak-retry-connector , buildPythonPackage , fetchFromGitHub , pythonOlder }: buildPythonPackage rec { pname = "pyswitchbot"; version = "0.18.14"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pySwitchbot"; rev = "refs/tags/${version}"; hash = "sha256-XUdrjhV0AnKV6snb183FrlcSLAvo7U+NyvPDorykkJU="; }; propagatedBuildInputs = [ bleak bleak-retry-connector ]; # Project has no tests doCheck = false; pythonImportsCheck = [ "switchbot" ]; meta = with lib; { description = "Python library to control Switchbot IoT devices"; homepage = "https://github.com/Danielhiversen/pySwitchbot"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; platforms = platforms.linux; }; }