Merge pull request #330738 from getchoo/pkgs/apprise/morebadtest

python312Packages.apprise: disable nondeterministic tests; add version test
This commit is contained in:
Fabián Heredia Montiel 2024-07-29 11:09:55 -06:00 committed by GitHub
commit c674db5e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
{
lib,
apprise,
babel,
buildPythonPackage,
click,
@ -17,6 +18,7 @@
requests,
requests-oauthlib,
setuptools,
testers,
}:
buildPythonPackage rec {
@ -60,13 +62,19 @@ buildPythonPackage rec {
# Nondeterministic. Fails with `assert 0 == 1`
"test_notify_emoji_general"
"test_plugin_mqtt_general"
# Nondeterministic. Fails with `assert 3 == 2`
"test_plugin_matrix_transaction_ids_api_v3"
# Nondeterministic. Fails with `AssertionError`
"test_plugin_xbmc_kodi_urls"
# Nondeterministic. Fails with `AssertionError`
"test_plugin_zulip_urls"
];
disabledTestPaths = [
# AttributeError: module 'apprise.plugins' has no attribute 'NotifyBulkSMS'
"test/test_plugin_bulksms.py"
# Nondeterministic. Multiple tests will fail with `AssertionError`
"test/test_plugin_workflows.py"
];
postInstall = ''
@ -75,12 +83,19 @@ buildPythonPackage rec {
pythonImportsCheck = [ "apprise" ];
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ getchoo ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "apprise";
};
}