{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, requests, requests-mock, setuptools, }: buildPythonPackage rec { pname = "pyfibaro"; version = "0.8.3"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "rappenze"; repo = "pyfibaro"; tag = version; hash = "sha256-KdlndW066TDxZpkIP0Oa3Lii0mBpwELfHtoGKiwh6GE="; }; build-system = [ setuptools ]; dependencies = [ 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/${src.tag}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }