1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest-asyncio,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10 responses,
11}:
12
13buildPythonPackage rec {
14 pname = "todoist-api-python";
15 version = "2.1.7";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "Doist";
22 repo = "todoist-api-python";
23 tag = "v${version}";
24 hash = "sha256-qOb9qAwjQ0MqR+mdNEkt7W8SiBhZ8gRf01TsHDkLPS4=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [ requests ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 responses
35 ];
36
37 pythonImportsCheck = [ "todoist_api_python" ];
38
39 meta = with lib; {
40 description = "Library for the Todoist REST API";
41 homepage = "https://github.com/Doist/todoist-api-python";
42 changelog = "https://github.com/Doist/todoist-api-python/blob/v${version}/CHANGELOG.md";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}