From 77e7fe7133d9c14fb03d2c7114d1f7bc1bf0ebeb Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 26 Mar 2026 16:06:18 -0700 Subject: [PATCH] python3Packages.niworkflows: fix tests on Darwin by supplying sysctl --- pkgs/development/python-modules/niworkflows/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/niworkflows/default.nix b/pkgs/development/python-modules/niworkflows/default.nix index b53adb8324f8..ef715c969fb3 100644 --- a/pkgs/development/python-modules/niworkflows/default.nix +++ b/pkgs/development/python-modules/niworkflows/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -27,6 +28,7 @@ scipy, seaborn, svgutils, + sysctl, templateflow, traits, transforms3d, @@ -89,6 +91,10 @@ buildPythonPackage (finalAttrs: { pytest-env pytestCheckHook writableTmpDirAsHomeHook + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Needed for tests that read the system memory usage on Darwin + sysctl ]; enabledTestPaths = [ "niworkflows" ];