{ lib , buildPythonPackage , fetchFromGitHub , pytestCheckHook , pythonOlder , requests , requests-mock , setuptools }: buildPythonPackage rec { pname = "pyfibaro"; version = "0.7.0"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "rappenze"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-3qE9U3yyIFl245RihcL3Kvm1NHFd42r6dvZ2Gz4sOvY="; }; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; pythonImportsCheck = [ "pyfibaro" ]; meta = with lib; { description = "Library to access FIBARO Home center"; homepage = "https://github.com/rappenze/pyfibaro"; changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }