2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
2020-09-09 12:32:31 +01:00
|
|
|
, requests, fetchpatch, pythonOlder, typing
|
|
|
|
}:
|
2017-08-23 12:00:22 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "todoist-python";
|
2020-08-16 18:31:18 +01:00
|
|
|
version = "8.1.2";
|
2017-08-23 12:00:22 +01:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:18 +01:00
|
|
|
sha256 = "750b2d2300e8590cd56414ab7bbbc8dfcaf8c27102b342398955812176499498";
|
2017-08-23 12:00:22 +01:00
|
|
|
};
|
|
|
|
|
2020-09-09 12:32:31 +01:00
|
|
|
patches = [
|
|
|
|
# From https://github.com/Doist/todoist-python/pull/80
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Doist/todoist-python/commit/605443c67a8e2f105071e0da001c9f6f2a89ef19.patch";
|
|
|
|
sha256 = "0ah0s5by783kqlaimsbxz11idz0bhc2428aw9vdjpngmzb7ih1pa";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Doist/todoist-python/commit/f2f8e1e5b3ab1674ad9f0dff885702a25d1d18e9.patch";
|
|
|
|
sha256 = "1kp63yk9kj87zvvgfl60m6lxdm5sx3dny4g0s67ap1jbz350wifn";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ] ++ stdenv.lib.optional (pythonOlder "3.5") typing;
|
2017-08-23 12:00:22 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The official Todoist Python API library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://todoist-python.readthedocs.io/en/latest/";
|
2017-08-23 12:00:22 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2020-09-09 12:32:31 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ma27 ];
|
2017-08-23 12:00:22 +01:00
|
|
|
};
|
|
|
|
}
|