diff --git a/pkgs/development/python-modules/gilknocker/default.nix b/pkgs/development/python-modules/gilknocker/default.nix index 29cf43a96c69..425fd25c40ef 100644 --- a/pkgs/development/python-modules/gilknocker/default.nix +++ b/pkgs/development/python-modules/gilknocker/default.nix @@ -1,7 +1,9 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system pkg-config, @@ -54,6 +56,24 @@ buildPythonPackage rec { pytest-rerunfailures ]; + enabledTestPaths = [ + # skip the benchmarks as they can segfault + # https://github.com/milesgranger/gilknocker/issues/35 + "tests" + ]; + + disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [ + # segfaults + # https://github.com/milesgranger/gilknocker/issues/35 + "benchmarks" + ]; + + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # depends on an empirically-derived threshold that fails on fast and slow machines. + # https://github.com/milesgranger/gilknocker/issues/36 + "test_knockknock_some_gil" + ]; + pytestFlags = [ "--benchmark-disable" ]; meta = {