functiontrace: add functiontrace-server dependency (#400768)

This commit is contained in:
Peder Bergebakken Sundt
2025-05-01 22:17:56 +02:00
committed by GitHub
@@ -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
];
};
}