1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 wheel,
7 psutil,
8}:
9
10buildPythonPackage rec {
11 pname = "vprof";
12 version = "0.38";
13 pyproject = true;
14
15 # We use the Pypi source rather than the GitHub ones because the former include the javascript
16 # dependency for the UI.
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-fxAAkS7rekUMfJTTzJZzmvRa0P8B1avMCwmhddQP+ts=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 wheel
25 ];
26
27 propagatedBuildInputs = [ psutil ];
28
29 pythonImportsCheck = [ "vprof" ];
30
31 # The tests are not included in the Pypi sources
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Visual profiler for Python";
36 homepage = "https://github.com/nvdv/vprof";
37 license = licenses.bsd2;
38 maintainers = with maintainers; [ GaetanLepage ];
39 mainProgram = "vprof";
40 };
41}