Files
nixpkgs/pkgs/development/python-modules/functiontrace/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
987 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 = {
homepage = "https://functiontrace.com";
description = "Python module for Functiontrace";
license = lib.licenses.prosperity30;
maintainers = with lib.maintainers; [
mathiassven
tehmatt
];
};
}