2022-02-05 23:22:54 +00:00
|
|
|
{ lib
|
2022-05-08 23:53:28 +00:00
|
|
|
, babel
|
2022-02-05 23:22:54 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, gntp
|
|
|
|
, installShellFiles
|
|
|
|
, markdown
|
|
|
|
, paho-mqtt
|
2022-11-28 02:31:17 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytest-xdist
|
2022-02-05 23:22:54 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2022-02-25 12:11:17 +00:00
|
|
|
, requests-oauthlib
|
2019-05-31 06:00:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apprise";
|
2022-12-29 10:53:34 +00:00
|
|
|
version = "1.2.1";
|
2022-02-05 23:22:54 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-05-31 06:00:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-29 10:53:34 +00:00
|
|
|
hash = "sha256-Z+DCJ+7O4mAACYDbv4uh5e69vklPRzCAgpfJ5kXANXk=";
|
2019-05-31 06:00:00 +00:00
|
|
|
};
|
|
|
|
|
2022-02-05 23:22:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
2019-05-31 06:00:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-05 23:22:54 +00:00
|
|
|
click
|
|
|
|
cryptography
|
|
|
|
markdown
|
|
|
|
pyyaml
|
|
|
|
requests
|
2022-02-25 12:11:17 +00:00
|
|
|
requests-oauthlib
|
2019-05-31 06:00:00 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-28 02:31:17 +00:00
|
|
|
babel
|
2022-02-05 23:22:54 +00:00
|
|
|
gntp
|
|
|
|
paho-mqtt
|
2022-11-28 02:31:17 +00:00
|
|
|
pytest-mock
|
|
|
|
pytest-xdist
|
2022-02-05 23:22:54 +00:00
|
|
|
pytestCheckHook
|
2019-05-31 06:00:00 +00:00
|
|
|
];
|
|
|
|
|
2022-02-05 23:22:54 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_apprise_cli_nux_env"
|
|
|
|
"test_plugin_mqtt_general"
|
|
|
|
];
|
2021-01-08 04:20:00 +00:00
|
|
|
|
2022-11-08 15:34:50 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# AttributeError: module 'apprise.plugins' has no attribute 'NotifyBulkSMS'
|
|
|
|
"test/test_plugin_bulksms.py"
|
|
|
|
];
|
|
|
|
|
2021-01-08 04:20:00 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage packaging/man/apprise.1
|
|
|
|
'';
|
|
|
|
|
2022-02-05 23:22:54 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apprise"
|
|
|
|
];
|
2021-02-25 01:52:52 +00:00
|
|
|
|
2019-05-31 06:00:00 +00:00
|
|
|
meta = with lib; {
|
2022-02-05 23:22:54 +00:00
|
|
|
description = "Push Notifications that work with just about every platform";
|
2019-05-31 06:00:00 +00:00
|
|
|
homepage = "https://github.com/caronc/apprise";
|
2022-12-29 10:51:09 +00:00
|
|
|
changelog = "https://github.com/caronc/apprise/releases/tag/v${version}";
|
2019-05-31 06:00:00 +00:00
|
|
|
license = licenses.mit;
|
2022-02-05 23:22:54 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2019-05-31 06:00:00 +00:00
|
|
|
};
|
|
|
|
}
|