Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 83 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, apprise, babel, buildPythonPackage, click, cryptography, fetchPypi, gntp, installShellFiles, markdown, paho-mqtt, pytest-mock, pytestCheckHook, pyyaml, requests, requests-oauthlib, setuptools, stdenv, terminal-notifier, testers,}:
buildPythonPackage (finalAttrs: { pname = "apprise"; version = "1.9.9"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-/WIsDfFr3HntOFU5c1VzSIyv4kBdJXR+h+69awmyYBI="; };
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 = [ babel setuptools ];
dependencies = [ click cryptography markdown pyyaml requests requests-oauthlib ];
nativeCheckInputs = [ gntp paho-mqtt pytest-mock pytestCheckHook ];
postInstall = '' installManPage packaging/man/apprise.1 '';
pythonImportsCheck = [ "apprise" ];
passthru = { tests.version = testers.testVersion { package = apprise; version = "v${finalAttrs.version}"; }; };
meta = { description = "Push Notifications that work with just about every platform"; homepage = "https://appriseit.com/"; changelog = "https://github.com/caronc/apprise/releases/tag/v${finalAttrs.version}"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ getchoo ]; mainProgram = "apprise"; };})