blob: e0509dbe6775cb44a76096eac42b900564b6c1a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
toml,
functiontrace-server,
}:
buildPythonPackage rec {
pname = "functiontrace";
version = "0.5.1";
pyproject = true;
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
];
};
}
|