From 3af4a2b8e14f98ae1ff395b2cb854c31bf435989 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 21 Feb 2026 20:24:44 +0000 Subject: [PATCH] python3Packages.shellingham: fix for darwin by patching the absolute path to procps --- pkgs/development/python-modules/shellingham/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/shellingham/default.nix b/pkgs/development/python-modules/shellingham/default.nix index 76bb8c18b3d3..5731146598cf 100644 --- a/pkgs/development/python-modules/shellingham/default.nix +++ b/pkgs/development/python-modules/shellingham/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + procps, setuptools, pytest-mock, pytestCheckHook, @@ -19,6 +20,13 @@ buildPythonPackage (finalAttrs: { hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ="; }; + postPatch = '' + substituteInPlace src/shellingham/posix/ps.py \ + --replace-fail \ + 'cmd = ["ps",' \ + 'cmd = ["${lib.getExe' procps "ps"}",' + ''; + build-system = [ setuptools ]; nativeCheckInputs = [