Files
nixpkgs/pkgs/development/python-modules/functiontrace/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
989 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
toml,
functiontrace-server,
}:
buildPythonPackage rec {
pname = "functiontrace";
version = "0.5.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-yRzcg8BDuwF74J2EYa/3GMkTaRGsx0WyDIQEWHwj12M=";
};
nativeBuildInputs = [
setuptools
toml
];
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
tehmatt
];
};
}