81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
75 lines
1.2 KiB
Nix
75 lines
1.2 KiB
Nix
{ lib
|
|
, Babel
|
|
, buildPythonPackage
|
|
, click
|
|
, cryptography
|
|
, fetchPypi
|
|
, gntp
|
|
, installShellFiles
|
|
, markdown
|
|
, mock
|
|
, paho-mqtt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, requests_oauthlib
|
|
, six
|
|
, slixmpp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apprise";
|
|
version = "0.9.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BOMeSvwmGiZvA95+e2bceCGXRwowU5+zJAl7Sn4wKqM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
Babel
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
cryptography
|
|
markdown
|
|
pyyaml
|
|
requests
|
|
requests_oauthlib
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
gntp
|
|
mock
|
|
paho-mqtt
|
|
pytestCheckHook
|
|
slixmpp
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_apprise_cli_nux_env"
|
|
"test_plugin_mqtt_general"
|
|
];
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|