From 22e2c17c464716a42bcb7a53c32d26bc69dd7f4e Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Thu, 5 Sep 2024 19:23:29 +0400 Subject: [PATCH] =?UTF-8?q?gcalcli:=204.3.0=20=E2=86=92=204.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/applications/misc/gcalcli/default.nix | 31 ++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/misc/gcalcli/default.nix b/pkgs/applications/misc/gcalcli/default.nix index 6a55f0ff7420..da456226b1a7 100644 --- a/pkgs/applications/misc/gcalcli/default.nix +++ b/pkgs/applications/misc/gcalcli/default.nix @@ -8,43 +8,52 @@ python3Packages.buildPythonApplication rec { pname = "gcalcli"; - version = "4.3.0"; + version = "4.4.0"; pyproject = true; src = fetchFromGitHub { owner = "insanum"; repo = "gcalcli"; rev = "refs/tags/v${version}"; - hash = "sha256-roHMWUwklLMNhLJANsAeBKcSX1Qk47kH5A3Y8SuDrmg="; + hash = "sha256-X9sgnujHMbmrt7cpcBOvTycIKFz3G2QzNDt3me5GUrQ="; }; - postPatch = lib.optionalString stdenv.isLinux '' - substituteInPlace gcalcli/argparsers.py \ - --replace-fail "'notify-send" "'${lib.getExe libnotify}" - ''; + postPatch = + '' + # dev dependencies + substituteInPlace pyproject.toml \ + --replace-fail "\"google-api-python-client-stubs\"," "" \ + --replace-fail "\"types-python-dateutil\"," "" \ + --replace-fail "\"types-requests\"," "" \ + --replace-fail "\"types-vobject\"," "" + '' + + lib.optionalString stdenv.isLinux '' + substituteInPlace gcalcli/argparsers.py \ + --replace-fail "'notify-send" "'${lib.getExe libnotify}" + ''; build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [ + argcomplete python-dateutil gflags httplib2 parsedatetime - six vobject google-api-python-client - oauth2client + google-auth-oauthlib uritemplate libnotify ]; nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; - meta = with lib; { + meta = { description = "CLI for Google Calendar"; mainProgram = "gcalcli"; homepage = "https://github.com/insanum/gcalcli"; - license = licenses.mit; - maintainers = with maintainers; [ nocoolnametom ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ nocoolnametom ]; }; }