From 1e11e207ce1c7e5d4cfe4c95cb16b609c6d6deb2 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 25 Aug 2025 21:13:53 +0200 Subject: [PATCH] python3Packages.cachier: unbreak --- .../python-modules/cachier/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/development/python-modules/cachier/default.nix b/pkgs/development/python-modules/cachier/default.nix index 60f46103311d..2c93fcc2d1d8 100644 --- a/pkgs/development/python-modules/cachier/default.nix +++ b/pkgs/development/python-modules/cachier/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, @@ -9,6 +10,7 @@ portalocker, pytestCheckHook, pytest-cov-stub, + sqlalchemy, pymongo, dnspython, pymongo-inmemory, @@ -46,6 +48,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook pytest-cov-stub + sqlalchemy pymongo dnspython pymongo-inmemory @@ -67,9 +70,23 @@ buildPythonPackage rec { # don't test formatting "test_flake8" + # slow, spawns 800+ threads + "test_inotify_instance_limit_reached" + # timing sensitive "test_being_calc_next_time" "test_pickle_being_calculated" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # sensitive to host file system + # Unhandled exception in FSEventsEmitter - RuntimeError: Cannot add watch - it is already scheduled + "test_bad_cache_file" + "test_delete_cache_file" + ]; + + disabledTestPaths = [ + # Keeps breaking due to concurrent access or failing to close the db between tests. + "tests/test_sql_core.py" ]; preBuild = ''