{ lib , bleak , buildPythonPackage , fetchFromGitHub , pythonOlder }: buildPythonPackage rec { pname = "pyswitchbot"; version = "0.14.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pySwitchbot"; rev = version; hash = "sha256-6u7PqYv7Q5rVzsUnoQi495svX8puBz0Oj3SGgcpJrcQ="; }; propagatedBuildInputs = [ bleak ]; # 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; }; }