Files
nixpkgs/pkgs/by-name/gc/gcalcli/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
nix-update-script,
python3Packages,
libnotify,
}:
python3Packages.buildPythonApplication rec {
pname = "gcalcli";
version = "4.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "insanum";
repo = "gcalcli";
tag = "v${version}";
hash = "sha256-FU1EHLQ+/2sOGeeGwONsrV786kHTFfMel7ocBcCe+rI=";
};
updateScript = nix-update-script { };
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace gcalcli/argparsers.py \
--replace-fail "'notify-send" "'${lib.getExe libnotify}"
'';
build-system = with python3Packages; [ setuptools-scm ];
dependencies = with python3Packages; [
argcomplete
babel
gflags
google-api-python-client
google-auth-oauthlib
httplib2
libnotify
parsedatetime
platformdirs
pydantic
python-dateutil
truststore
uritemplate
vobject
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
meta = {
description = "CLI for Google Calendar";
mainProgram = "gcalcli";
homepage = "https://github.com/insanum/gcalcli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nocoolnametom ];
};
}