diff --git a/pkgs/development/python-modules/setproctitle/default.nix b/pkgs/development/python-modules/setproctitle/default.nix index aa1211029abb..e99a26990139 100644 --- a/pkgs/development/python-modules/setproctitle/default.nix +++ b/pkgs/development/python-modules/setproctitle/default.nix @@ -28,7 +28,7 @@ buildPythonPackage rec { ]; # Setting the process title fails on macOS in the Nix builder environment (regardless of sandboxing) - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_setproctitle_darwin" ]; + disabledTests = if stdenv.hostPlatform.isDarwin then [ "test_setproctitle_darwin" ] else null; pythonImportsCheck = [ "setproctitle" ];