From 64002368238ed5e68fb8664b82efb6c61ed1bd74 Mon Sep 17 00:00:00 2001 From: Xarvex Date: Wed, 26 Mar 2025 17:26:10 -0500 Subject: [PATCH] fix(nix/package): add missing dependencies from #859 Adds toml and pydantic as Python packages, and ignore tests that require mutating files. Fixes: #890 --- nix/package/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nix/package/default.nix b/nix/package/default.nix index 4b53e5bc..a32f6ffa 100644 --- a/nix/package/default.nix +++ b/nix/package/default.nix @@ -13,6 +13,7 @@ pillow-heif, pillow-jxl-plugin, pipewire, + pydantic, pydub, pyside6, pytest-qt, @@ -26,6 +27,7 @@ stdenv, structlog, syrupy, + toml, ujson, vtf2img, wrapGAppsHook, @@ -91,19 +93,21 @@ buildPythonApplication { opencv-python pillow pillow-heif + pydantic pydub pyside6 rawpy send2trash sqlalchemy structlog + toml ujson vtf2img ] ++ lib.optional withJXLSupport pillow-jxl-plugin; - # INFO: These tests require modifications to a library, which does not work - # in a read-only environment. disabledTests = [ + # INFO: These tests require modifications to a library, which does not work + # in a read-only environment. "test_build_tag_panel_add_alias_callback" "test_build_tag_panel_add_aliases" "test_build_tag_panel_add_sub_tag_callback" @@ -115,6 +119,9 @@ buildPythonApplication { "test_build_tag_panel_set_tag" "test_json_migration" "test_library_migrations" + + # INFO: This test requires modification of a configuration file. + "test_filepath_setting" ]; meta = {