From 6cde0f480dca28426a5634b70dd963d2de7bcf36 Mon Sep 17 00:00:00 2001 From: Fabio Natali Date: Fri, 29 Mar 2024 11:38:10 -0500 Subject: gnu: Add python-apprise. * gnu/packages/python-xyz.scm (python-apprise): New variable. Change-Id: I55b8c7b558ce34835cff31b9fac6ff3b81ff5fec Signed-off-by: jgart --- gnu/packages/python-xyz.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5eb5cd958b..c0a432b52b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -231,6 +231,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages man) #:use-module (gnu packages markup) #:use-module (gnu packages maths) + #:use-module (gnu packages messaging) #:use-module (gnu packages monitoring) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) @@ -293,6 +294,51 @@ (define-module (gnu packages python-xyz) #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) +(define-public python-apprise + (package + (name "python-apprise") + (version "1.7.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "apprise" version)) + (sha256 + (base32 "0wvs1k71fipn617y9wsdcvwcgg2pd0nvriarlwl4438la4086ppg")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-certifi + python-click + python-dataclasses + python-markdown + python-pyyaml + python-requests + python-requests-oauthlib)) + (native-inputs (list python-babel + python-coverage + python-cryptography + python-flake8 + python-paho-mqtt + python-pytest + python-pytest-cov + python-pytest-mock + python-pytest-xdist + python-wheel)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (delete-file "test/test_plugin_macosx.py") + (invoke "pytest"))))))) + (home-page "https://github.com/caronc/apprise") + (synopsis + "Push notification Python library that works with many platforms") + (description + "Apprise is a Python library that allows sending push notifications to a broad +range of notification services, such as Telegram, Discord, Slack, Amazon SNS, +Gotify, etc.") + (license license:bsd-2))) + (define-public python-xmldiff (package (name "python-xmldiff") -- cgit v1.2.3