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

This commit is contained in:
Aleksana
2026-01-11 03:24:44 +00:00
committed by GitHub
@@ -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 = [