From abcaf7ce4df2344bc5732c4d6d223b4101c9964c Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 5 Jul 2025 14:24:11 -0700 Subject: [PATCH] python3Packages.compress: disable tests that hang pytest on Darwin These tests hang pytest after all the tests have been run. --- pkgs/development/python-modules/compressai/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/compressai/default.nix b/pkgs/development/python-modules/compressai/default.nix index a3b4e3238d79..2749d88def59 100644 --- a/pkgs/development/python-modules/compressai/default.nix +++ b/pkgs/development/python-modules/compressai/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -93,6 +94,12 @@ buildPythonPackage rec { "test_find_close" ]; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # Cause pytest to hang on Darwin after the tests are done + "tests/test_eval_model.py" + "tests/test_train.py" + ]; + meta = { description = "PyTorch library and evaluation platform for end-to-end compression research"; homepage = "https://github.com/InterDigitalInc/CompressAI";