2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, python3
|
|
|
|
, libnotify ? null }:
|
|
|
|
|
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "gcalcli";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "4.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "insanum";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0s5fhcmz3n0dwh3vkqr4aigi59q43v03ch5jhh6v75149icwr0df";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = lib.optionalString stdenv.isLinux ''
|
|
|
|
substituteInPlace gcalcli/argparsers.py \
|
|
|
|
--replace "'notify-send" "'${libnotify}/bin/notify-send"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil gflags httplib2 parsedatetime six vobject
|
2021-03-09 03:18:52 +00:00
|
|
|
google-api-python-client oauth2client uritemplate
|
2020-04-24 23:36:52 +00:00
|
|
|
libnotify
|
2021-04-26 19:14:03 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# There are no tests as of 4.0.0a4
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI for Google Calendar";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gcalcli";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/insanum/gcalcli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nocoolnametom ];
|
|
|
|
};
|
|
|
|
}
|