python3Packages.todoist: fix build
See https://hydra.nixos.org/build/126777642 ZHF #97479
This commit is contained in:
parent
51428e8d38
commit
f961ac6695
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, fetchPypi, buildPythonPackage
|
{ stdenv, fetchPypi, buildPythonPackage
|
||||||
, requests }:
|
, requests, fetchpatch, pythonOlder, typing
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "todoist-python";
|
pname = "todoist-python";
|
||||||
|
@ -10,11 +11,24 @@ buildPythonPackage rec {
|
||||||
sha256 = "750b2d2300e8590cd56414ab7bbbc8dfcaf8c27102b342398955812176499498";
|
sha256 = "750b2d2300e8590cd56414ab7bbbc8dfcaf8c27102b342398955812176499498";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests ];
|
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;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "The official Todoist Python API library";
|
description = "The official Todoist Python API library";
|
||||||
homepage = "https://todoist-python.readthedocs.io/en/latest/";
|
homepage = "https://todoist-python.readthedocs.io/en/latest/";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ ma27 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue