about summary refs log tree commit diff
path: root/pkgs/development/python-modules/vprof/default.nix
blob: 1f41f7b9a203138a487bb48646629c25aa90a174 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, psutil
}:

buildPythonPackage rec {
  pname = "vprof";
  version = "0.38";
  pyproject = true;

  # We use the Pypi source rather than the GitHub ones because the former include the javascript
  # dependency for the UI.
  src = fetchPypi {
    inherit pname version;
    hash = "sha256-fxAAkS7rekUMfJTTzJZzmvRa0P8B1avMCwmhddQP+ts=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    psutil
  ];

  pythonImportsCheck = [ "vprof" ];

  # The tests are not included in the Pypi sources
  doCheck = false;

  meta = with lib; {
    description = "Visual profiler for Python";
    homepage = "https://github.com/nvdv/vprof";
    license = licenses.bsd2;
    maintainers = with maintainers; [ GaetanLepage ];
    mainProgram = "vprof";
  };
}