about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/todoist/default.nix
blob: 23c68007cd3f6a4c5cbfc038271dc8b9635c68c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, fetchPypi, buildPythonPackage
, requests, fetchpatch, pythonOlder, typing
}:

buildPythonPackage rec {
  pname = "todoist-python";
  version = "8.1.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-AFRKA5VRD6jyiguZYP7WOQOWqHq1GjUzbuez0f1070U=";
  };

  propagatedBuildInputs = [ requests ] ++ lib.optional (pythonOlder "3.5") typing;

  meta = with lib; {
    description = "The official Todoist Python API library";
    homepage = "https://todoist-python.readthedocs.io/en/latest/";
    license = licenses.mit;
    maintainers = with maintainers; [ ma27 ];
  };
}