From 9d8f8d668c094527948b209741d99cffccc1ef6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Wed, 15 Oct 2025 07:40:56 +0200 Subject: [PATCH 1/2] python3Packages.setproctitle: fix darwin build Some tests got re-enabled in https://github.com/NixOS/nixpkgs/pull/444696, but one of them fails on Darwin: https://github.com/dvarrazzo/py-setproctitle/blob/master/tests/setproctitle_test.py#L73C5-L73C29 I couldn't figure out the root cause, maybe it has to do with the Nix builder environment or the nixbld user running the tests? I verified that the library works when invoked from a Nix shell by a regular user. --- pkgs/development/python-modules/setproctitle/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/setproctitle/default.nix b/pkgs/development/python-modules/setproctitle/default.nix index fdb412cb499e..aa1211029abb 100644 --- a/pkgs/development/python-modules/setproctitle/default.nix +++ b/pkgs/development/python-modules/setproctitle/default.nix @@ -5,6 +5,7 @@ setuptools, pytestCheckHook, procps, + stdenv, }: buildPythonPackage rec { @@ -26,6 +27,9 @@ buildPythonPackage rec { procps ]; + # Setting the process title fails on macOS in the Nix builder environment (regardless of sandboxing) + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_setproctitle_darwin" ]; + pythonImportsCheck = [ "setproctitle" ]; meta = { From 72a533422c2257f50cf240d8ba21339b4eb09dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 15 Oct 2025 11:38:20 +0200 Subject: [PATCH 2/2] python3Packages.setproctitle: avoid rebuild on linux for now --- pkgs/development/python-modules/setproctitle/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ];