{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-asyncio, pytestCheckHook, pythonOlder, requests, responses, }: buildPythonPackage rec { pname = "todoist-api-python"; version = "2.1.7"; pyproject = true; disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "Doist"; repo = "todoist-api-python"; tag = "v${version}"; hash = "sha256-qOb9qAwjQ0MqR+mdNEkt7W8SiBhZ8gRf01TsHDkLPS4="; }; build-system = [ poetry-core ]; dependencies = [ requests ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook responses ]; pythonImportsCheck = [ "todoist_api_python" ]; meta = with lib; { description = "Library for the Todoist REST API"; homepage = "https://github.com/Doist/todoist-api-python"; changelog = "https://github.com/Doist/todoist-api-python/blob/v${version}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }