1{ lib, fetchPypi, buildPythonPackage
2, requests, pythonOlder, typing
3}:
4
5buildPythonPackage rec {
6 pname = "todoist-python";
7 version = "8.1.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-AFRKA5VRD6jyiguZYP7WOQOWqHq1GjUzbuez0f1070U=";
12 };
13
14 propagatedBuildInputs = [ requests ] ++ lib.optional (pythonOlder "3.5") typing;
15
16 meta = with lib; {
17 description = "The official Todoist Python API library";
18 homepage = "https://todoist-python.readthedocs.io/en/latest/";
19 license = licenses.mit;
20 maintainers = with maintainers; [ ];
21 };
22}