2024-08-24 00:36:23 +03:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2024-08-24 04:45:48 +03:00
|
|
|
python3Packages,
|
|
|
|
libnotify,
|
2024-08-24 00:36:23 +03:00
|
|
|
}:
|
2017-01-27 02:28:40 +03:00
|
|
|
|
2024-08-24 04:45:48 +03:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-02-12 01:10:39 +03:00
|
|
|
pname = "gcalcli";
|
2020-06-09 23:33:22 +03:00
|
|
|
version = "4.3.0";
|
2024-08-24 04:45:48 +03:00
|
|
|
pyproject = true;
|
2017-01-27 02:28:40 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-08-24 00:36:23 +03:00
|
|
|
owner = "insanum";
|
2024-08-24 04:45:48 +03:00
|
|
|
repo = "gcalcli";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-roHMWUwklLMNhLJANsAeBKcSX1Qk47kH5A3Y8SuDrmg=";
|
2017-01-27 02:28:40 +03:00
|
|
|
};
|
|
|
|
|
2019-02-12 01:10:39 +03:00
|
|
|
postPatch = lib.optionalString stdenv.isLinux ''
|
2019-04-30 12:14:11 +03:00
|
|
|
substituteInPlace gcalcli/argparsers.py \
|
2024-08-24 04:45:48 +03:00
|
|
|
--replace-fail "'notify-send" "'${lib.getExe libnotify}"
|
2019-02-12 01:10:39 +03:00
|
|
|
'';
|
|
|
|
|
2024-08-24 04:45:48 +03:00
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
2024-08-24 00:36:23 +03:00
|
|
|
python-dateutil
|
|
|
|
gflags
|
|
|
|
httplib2
|
|
|
|
parsedatetime
|
|
|
|
six
|
|
|
|
vobject
|
|
|
|
google-api-python-client
|
|
|
|
oauth2client
|
|
|
|
uritemplate
|
2019-04-30 12:14:11 +03:00
|
|
|
libnotify
|
2021-03-25 11:11:39 +03:00
|
|
|
];
|
2017-02-08 05:41:25 +03:00
|
|
|
|
2024-08-24 04:45:48 +03:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
2018-04-29 07:34:38 +03:00
|
|
|
|
2017-01-27 02:28:40 +03:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI for Google Calendar";
|
2024-03-19 05:14:51 +03:00
|
|
|
mainProgram = "gcalcli";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/insanum/gcalcli";
|
2017-01-27 02:28:40 +03:00
|
|
|
license = licenses.mit;
|
2017-02-08 05:41:25 +03:00
|
|
|
maintainers = with maintainers; [ nocoolnametom ];
|
2017-01-27 02:28:40 +03:00
|
|
|
};
|
|
|
|
}
|