Unverified Commit c5ededd8 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

apprise: add support for macOS desktop notifications (#478344)

parents 4e6d4fd6 3e991220
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
  requests,
  requests-oauthlib,
  setuptools,
  stdenv,
  terminal-notifier,
  testers,
}:

@@ -32,6 +34,11 @@ buildPythonPackage rec {
    hash = "sha256-Qga+nLVpSj0I3Y4Dk7u5s2ISrDp3acJjNiAFXnXGyu8=";
  };

  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    substituteInPlace apprise/plugins/macosx.py \
    --replace-fail "/opt/homebrew/bin/terminal-notifier" "${lib.getExe' terminal-notifier "terminal-notifier"}"
  '';

  nativeBuildInputs = [ installShellFiles ];

  build-system = [