depot/third_party/nixpkgs/pkgs/development/python-modules/apprise/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

79 lines
1.3 KiB
Nix

{
lib,
apprise,
babel,
buildPythonPackage,
click,
cryptography,
fetchPypi,
gntp,
installShellFiles,
markdown,
paho-mqtt,
pytest-mock,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
requests-oauthlib,
setuptools,
testers,
}:
buildPythonPackage rec {
pname = "apprise";
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-tck6/WMxr+S2OlXRzqkHbke+y0uom1YrGBwT4luwx9Y=";
};
nativeBuildInputs = [ installShellFiles ];
build-system = [
babel
setuptools
];
dependencies = [
click
cryptography
markdown
pyyaml
requests
requests-oauthlib
];
nativeCheckInputs = [
gntp
paho-mqtt
pytest-mock
pytestCheckHook
];
postInstall = ''
installManPage packaging/man/apprise.1
'';
pythonImportsCheck = [ "apprise" ];
passthru = {
tests.version = testers.testVersion {
package = apprise;
version = "v${version}";
};
};
meta = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "apprise";
};
}