python3Packages.niworkflows: fix tests on Darwin by supplying sysctl

This commit is contained in:
Sarah Clark
2026-03-26 16:36:45 -07:00
parent 1d1cc185e0
commit 77e7fe7133
@@ -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" ];