functiontrace: add functiontrace-server dependency

This commit is contained in:
Matt Bryant
2025-04-22 01:09:45 -07:00
parent 7416ca5d5a
commit c676783451
@@ -4,6 +4,7 @@
fetchPypi,
setuptools,
toml,
functiontrace-server,
}:
buildPythonPackage rec {
@@ -23,10 +24,21 @@ buildPythonPackage rec {
pythonImportsCheck = [ "functiontrace" ];
# `functiontrace` needs `functiontrace-server` in its path.
# Technically we also need this when running via a Python import, such as for
# `python3 -m functiontrace`, but that's a less common use-case.
postFixup = ''
wrapProgram $out/bin/functiontrace \
--prefix PATH : ${lib.makeBinPath [ functiontrace-server ]}
'';
meta = with lib; {
homepage = "https://functiontrace.com";
description = "Python module for Functiontrace";
license = licenses.prosperity30;
maintainers = with maintainers; [ mathiassven ];
maintainers = with maintainers; [
mathiassven
tehmatt
];
};
}