1{ stdenv, fetchPypi, buildPythonPackage
2, requests, fetchpatch, pythonOlder, typing
3}:
4
5buildPythonPackage rec {
6 pname = "todoist-python";
7 version = "8.1.2";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "750b2d2300e8590cd56414ab7bbbc8dfcaf8c27102b342398955812176499498";
12 };
13
14 patches = [
15 # From https://github.com/Doist/todoist-python/pull/80
16 (fetchpatch {
17 url = "https://github.com/Doist/todoist-python/commit/605443c67a8e2f105071e0da001c9f6f2a89ef19.patch";
18 sha256 = "0ah0s5by783kqlaimsbxz11idz0bhc2428aw9vdjpngmzb7ih1pa";
19 })
20 (fetchpatch {
21 url = "https://github.com/Doist/todoist-python/commit/f2f8e1e5b3ab1674ad9f0dff885702a25d1d18e9.patch";
22 sha256 = "1kp63yk9kj87zvvgfl60m6lxdm5sx3dny4g0s67ap1jbz350wifn";
23 })
24 ];
25
26 propagatedBuildInputs = [ requests ] ++ stdenv.lib.optional (pythonOlder "3.5") typing;
27
28 meta = {
29 description = "The official Todoist Python API library";
30 homepage = "https://todoist-python.readthedocs.io/en/latest/";
31 license = stdenv.lib.licenses.mit;
32 maintainers = with stdenv.lib.maintainers; [ ma27 ];
33 };
34}