From c722b770fefa3edb0f1f7bc95b7a4e603e98fb99 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 27 Sep 2024 10:06:25 +0200 Subject: [PATCH] normcap: unbreak darwin --- pkgs/by-name/no/normcap/package.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/no/normcap/package.nix b/pkgs/by-name/no/normcap/package.nix index bf34dba250cb..8404231fa392 100644 --- a/pkgs/by-name/no/normcap/package.nix +++ b/pkgs/by-name/no/normcap/package.nix @@ -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; }; }