summaryrefslogtreecommitdiff
path: root/net-im/zapzap/zapzap-7.4.5.ebuild
blob: 85c3b069028e83c3b73b7dde4edf12c18e66b63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools
inherit xdg distutils-r1 desktop

DESCRIPTION="WhatsApp desktop application written in PyQt6 + PyQt6-WebEngine"
HOMEPAGE="https://github.com/rafatosta/zapzap"

SRC_URI="https://github.com/rafatosta/zapzap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/pyqt6[${PYTHON_USEDEP},dbus]
	dev-python/pyqt6-webengine[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		dev-python/pyqt6[${PYTHON_USEDEP},testlib]
	)
"

EPYTEST_PLUGINS=()

distutils_enable_tests pytest

src_install() {
	distutils-r1_src_install
	doicon -s scalable share/icons/com.rtosta.zapzap.svg
	domenu share/applications/com.rtosta.zapzap.desktop
	insinto /usr/share/metainfo
	doins share/metainfo/com.rtosta.zapzap.appdata.xml
}

EPYTEST_DESELECT=(
	# Failing tests
	tests/test_account_data_removal.py::DisabledAccountWebViewTest::test_data_is_removed_for_an_account_disabled_since_startup  # "Aborted"

	# Failing due to xephyr testing environment
	tests/test_reporting.py::ReportingCoreTests::test_runtime_environment_reports_structured_graphics_and_chromium_flags  # AssertionError: 'offscreen' != 'xcb'

	# Failures related to the icon theme settings in the testing environment
	# Might be possible to resolve, if someone wants to investigate
	tests/test_accounts_settings_ui.py::AccountsSettingsUiTests::test_edit_dialog_combines_name_and_icon_controls
	tests/test_accounts_settings_ui.py::AccountsSettingsUiTests::test_photo_and_custom_icon_colors_are_retained_when_switching
	tests/test_browser_page_button_ui.py::BrowserPageButtonUiTests::test_disabled_effect_preserves_transparent_avatar_shape
	tests/test_browser_page_button_ui.py::BrowserPageButtonUiTests::test_indicator_is_limited_to_active_unmuted_accounts_with_activity
	tests/test_browser_page_button_ui.py::BrowserPageButtonUiTests::test_unread_count_is_not_rendered_inside_avatar
	tests/test_check_box.py::CheckBoxTests::test_menu_indicators_match_checkbox_and_radio_semantics
	tests/test_donations_page.py::DonationsPageUiTests::test_method_and_external_icons_render_for_light_and_dark_themes
	tests/test_update_checker.py::UpdateUiTests::test_sidebar_icon_opens_details_and_download_action
	tests/test_whatsapp_app_lock.py::WhatsAppAppLockTests::test_sidebar_button_is_accessible_themed_and_in_the_utility_group
)