From 0fd499992dccd6286352610aee4cad7427a6a70b Mon Sep 17 00:00:00 2001 From: John Rodewald Date: Sun, 24 Nov 2024 11:45:10 +0100 Subject: [PATCH] python312Packages.pinocchio: Disable test that fails on darwin --- pkgs/by-name/pi/pinocchio/package.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/pi/pinocchio/package.nix b/pkgs/by-name/pi/pinocchio/package.nix index 7b6a9048ede11..02658ccbd2d35 100644 --- a/pkgs/by-name/pi/pinocchio/package.nix +++ b/pkgs/by-name/pi/pinocchio/package.nix @@ -88,13 +88,19 @@ stdenv.mkDerivation (finalAttrs: { checkInputs = lib.optionals (pythonSupport && casadiSupport) [ python3Packages.matplotlib ]; - cmakeFlags = [ - (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport) - (lib.cmakeBool "BUILD_WITH_LIBPYTHON" pythonSupport) - (lib.cmakeBool "BUILD_WITH_CASADI_SUPPORT" casadiSupport) - (lib.cmakeBool "BUILD_WITH_COLLISION_SUPPORT" collisionSupport) - (lib.cmakeBool "INSTALL_DOCUMENTATION" true) - ]; + cmakeFlags = + [ + (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport) + (lib.cmakeBool "BUILD_WITH_LIBPYTHON" pythonSupport) + (lib.cmakeBool "BUILD_WITH_CASADI_SUPPORT" casadiSupport) + (lib.cmakeBool "BUILD_WITH_COLLISION_SUPPORT" collisionSupport) + (lib.cmakeBool "INSTALL_DOCUMENTATION" true) + # Disable test that fails on darwin + # https://github.com/stack-of-tasks/pinocchio/blob/42306ed023b301aafef91e2e76cb070c5e9c3f7d/flake.nix#L24C1-L27C17 + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + (lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" "--exclude-regex;pinocchio-example-py-casadi-quadrotor-ocp") + ]; doCheck = true; pythonImportsCheck = [ "pinocchio" ];