2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-07-31 10:19:44 +00:00
|
|
|
apprise,
|
2024-05-15 15:35:15 +00:00
|
|
|
babel,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
cryptography,
|
|
|
|
fetchPypi,
|
|
|
|
gntp,
|
|
|
|
installShellFiles,
|
|
|
|
markdown,
|
|
|
|
paho-mqtt,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
requests-oauthlib,
|
|
|
|
setuptools,
|
2024-07-31 10:19:44 +00:00
|
|
|
testers,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apprise";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.9.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-tck6/WMxr+S2OlXRzqkHbke+y0uom1YrGBwT4luwx9Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
babel
|
|
|
|
setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
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-02-10 20:34:41 +00:00
|
|
|
gntp
|
|
|
|
paho-mqtt
|
2022-12-02 08:20:57 +00:00
|
|
|
pytest-mock
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage packaging/man/apprise.1
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "apprise" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = apprise;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
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}";
|
2024-07-31 10:19:44 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
2024-02-07 01:22:34 +00:00
|
|
|
mainProgram = "apprise";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|