python3Packages.shellingham: fix for darwin by patching the absolute path to procps

This commit is contained in:
Gaetan Lepage
2026-02-21 21:23:44 +00:00
parent 4ff3ab7d0f
commit 3af4a2b8e1
@@ -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 = [