2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, Babel
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, gntp
|
|
|
|
, installShellFiles
|
|
|
|
, markdown
|
|
|
|
, mock
|
|
|
|
, paho-mqtt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests-oauthlib
|
2022-02-10 20:34:41 +00:00
|
|
|
, six
|
|
|
|
, slixmpp
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apprise";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.9.8.3";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-24OYAjbnzer0KyTRx7Kty8HVsHdon+l4UazcWMIm428=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
Babel
|
|
|
|
installShellFiles
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
click
|
|
|
|
cryptography
|
|
|
|
markdown
|
|
|
|
pyyaml
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2022-02-10 20:34:41 +00:00
|
|
|
six
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
gntp
|
|
|
|
mock
|
|
|
|
paho-mqtt
|
|
|
|
pytestCheckHook
|
|
|
|
slixmpp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_apprise_cli_nux_env"
|
|
|
|
"test_plugin_mqtt_general"
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage packaging/man/apprise.1
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apprise"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Push Notifications that work with just about every platform";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/caronc/apprise";
|
|
|
|
license = licenses.mit;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|