nixpkgs/pkgs/applications/misc/gcalcli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-24 00:36:23 +03:00
{
stdenv,
lib,
fetchFromGitHub,
python3Packages,
libnotify,
2024-08-24 00:36:23 +03:00
}:
2017-01-27 02:28:40 +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";
pyproject = true;
2017-01-27 02:28:40 +03:00
src = fetchFromGitHub {
2024-08-24 00:36:23 +03:00
owner = "insanum";
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 \
--replace-fail "'notify-send" "'${lib.getExe libnotify}"
2019-02-12 01:10:39 +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
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
2017-01-27 02:28:40 +03:00
meta = with lib; {
description = "CLI for Google Calendar";
mainProgram = "gcalcli";
homepage = "https://github.com/insanum/gcalcli";
2017-01-27 02:28:40 +03:00
license = licenses.mit;
maintainers = with maintainers; [ nocoolnametom ];
2017-01-27 02:28:40 +03:00
};
}