2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, gntp
|
|
|
|
, installShellFiles
|
|
|
|
, markdown
|
|
|
|
, paho-mqtt
|
2022-12-02 08:20:57 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-xdist
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests-oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apprise";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.4.5";
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-t8ZlE8VFZpCimO2IfJAW3tQvFeNl0WFC5yi3T3z/7oI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-02 08:20:57 +00:00
|
|
|
babel
|
2022-02-10 20:34:41 +00:00
|
|
|
gntp
|
|
|
|
paho-mqtt
|
2022-12-02 08:20:57 +00:00
|
|
|
pytest-mock
|
|
|
|
pytest-xdist
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
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
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# AttributeError: module 'apprise.plugins' has no attribute 'NotifyBulkSMS'
|
|
|
|
"test/test_plugin_bulksms.py"
|
|
|
|
];
|
|
|
|
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/caronc/apprise/releases/tag/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
license = licenses.bsd3;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|