Skip to content

Commit 4a52695

Browse files
committed
pythonPackages.viztracer: init at 1.1.1
1 parent 7095921 commit 4a52695

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
objprint,
7+
orjson,
8+
nix-update-script,
9+
}:
10+
11+
buildPythonPackage rec {
12+
__structuredAttrs = true;
13+
14+
pname = "viztracer";
15+
version = "1.1.1";
16+
pyproject = true;
17+
18+
src = fetchFromGitHub {
19+
owner = "gaogaotiantian";
20+
repo = "viztracer";
21+
tag = version;
22+
hash = "sha256-j+PbPZY9ZmOyF0nPEP/Ba34HPx2SUPNlaXAjj3GG9dc=";
23+
};
24+
25+
build-system = [ setuptools ];
26+
27+
dependencies = [ objprint ];
28+
29+
optional-dependencies = {
30+
full = [ orjson ];
31+
};
32+
33+
pythonImportsCheck = [ "viztracer" ];
34+
35+
passthru.updateScript = nix-update-script { };
36+
37+
meta = {
38+
description = "Debugging and profiling tool that can trace and visualize python code execution";
39+
homepage = "https://github.com/gaogaotiantian/viztracer";
40+
changelog = "https://github.com/gaogaotiantian/viztracer/releases/tag/${version}";
41+
license = lib.licenses.asl20;
42+
maintainers = with lib.maintainers; [ nemeott ];
43+
mainProgram = "viztracer";
44+
};
45+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21465,6 +21465,8 @@ self: super: with self; {
2146521465
inherit (pkgs.libsForQt5) wrapQtAppsHook;
2146621466
};
2146721467

21468+
viztracer = callPackage ../development/python-modules/viztracer { };
21469+
2146821470
vl-convert-python = callPackage ../development/python-modules/vl-convert-python {
2146921471
inherit (pkgs) protobuf;
2147021472
};

0 commit comments

Comments
 (0)