60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
80 lines
1.4 KiB
Nix
80 lines
1.4 KiB
Nix
{ lib
|
|
, babel
|
|
, buildPythonPackage
|
|
, click
|
|
, cryptography
|
|
, fetchPypi
|
|
, gntp
|
|
, installShellFiles
|
|
, markdown
|
|
, paho-mqtt
|
|
, pytest-mock
|
|
, pytest-xdist
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, requests-oauthlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apprise";
|
|
version = "1.7.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-CeFZspAI5sjpPX/8PBXUGcC7rkFiBAX48tNDK3Ki6b8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
cryptography
|
|
markdown
|
|
pyyaml
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
babel
|
|
gntp
|
|
paho-mqtt
|
|
pytest-mock
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_apprise_cli_nux_env"
|
|
"test_plugin_mqtt_general"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: module 'apprise.plugins' has no attribute 'NotifyBulkSMS'
|
|
"test/test_plugin_bulksms.py"
|
|
];
|
|
|
|
postInstall = ''
|
|
installManPage packaging/man/apprise.1
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"apprise"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Push Notifications that work with just about every platform";
|
|
homepage = "https://github.com/caronc/apprise";
|
|
changelog = "https://github.com/caronc/apprise/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ marsam ];
|
|
mainProgram = "apprise";
|
|
};
|
|
}
|