app-misc/ntfy: new package

Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2020-03-13 01:56:48 +01:00
parent 586222744c
commit d5e4e44676
3 changed files with 58 additions and 0 deletions

1
app-misc/ntfy/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST ntfy-2.7.0.tar.gz 1837670 BLAKE2B 3bff167eb9ede624d5a92170c7d1f36ef075f64126a4080172a5b3cd517d2ed77a2488ee03b102a5b8d67fb37c04b47a42fd3e88b319807d798bb2622afa78ae SHA512 fba9ba15ce3c4667e5f85c0435cb5eb6224e539c10d2d431f3af3c90d6164e3098ddcb5f7881cbaed92ab0b68d9d161b16a00de680e21c3d439429865fa2765a

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<use>
<flag name="dbus">Support for desktop notifications</flag>
<flag name="telegram">Add support for telegram backend</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_6 )
inherit distutils-r1
DESCRIPTION="A utility for sending notifications, on demand and when commands finish."
HOMEPAGE="https://github.com/dschep/ntfy"
SRC_URI="https://github.com/dschep/ntfy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
LICENSE="GPL-3"
SLOT="0"
IUSE="test telegram dbus"
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dbus? (
dev-python/dbus-python[${PYTHON_USEDEP}]
virtual/notification-daemon
)
telegram? (
app-misc/telegram-send[${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}
test? (
dev-python/emoji[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/sleekxmpp[${PYTHON_USEDEP}]
)
"
python_test() {
esetup.py test || die
}