normcap: unbreak darwin

This commit is contained in:
Peder Bergebakken Sundt 2024-09-27 10:06:25 +02:00
parent a1d785c763
commit c722b770fe

View File

@ -50,6 +50,8 @@ ps.buildPythonApplication rec {
build-system = [
ps.hatchling
ps.babel
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
ps.toml
];
nativeBuildInputs = [
@ -114,10 +116,15 @@ ps.buildPythonApplication rec {
# flaky
"test_normcap_ocr_testcases"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# requires display
"test_send_via_qt_tray"
"test_screens"
# requires impure pbcopy
"test_get_copy_func_with_pbcopy"
"test_get_copy_func_without_pbcopy"
"test_perform_pbcopy"
"test_pbcopy"
"test_copy"
# NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:
# while obtaining endpoint 'ClientCallsAuxiliary': Connection interrupted
# since v5.0.0
@ -139,8 +146,16 @@ ps.buildPythonApplication rec {
# requires a display
"tests/integration/test_normcap.py"
"tests/integration/test_tray_menu.py"
"tests/integration/test_settings_menu.py"
"tests/tests_clipboard/test_handlers/test_qtclipboard.py"
"tests/tests_gui/test_tray.py"
"tests/tests_gui/test_window.py"
"tests/tests_screengrab/"
# failure unknown, crashes in first test with `.show()`
"tests/tests_gui/test_loading_indicator.py"
"tests/tests_gui/test_menu_button.py"
"tests/tests_gui/test_resources.py"
"tests/tests_gui/test_update_check.py"
];
desktopItems = [
@ -163,6 +178,5 @@ ps.buildPythonApplication rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ cafkafk pbsds ];
mainProgram = "normcap";
broken = stdenv.hostPlatform.isDarwin;
};
}