summary refs log tree commit diff
path: root/pkgs/development/python-modules/memory_profiler/default.nix
blob: 7587e5f33c95db7e7afd8b8d22335b43d70d261d (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
{ stdenv
, buildPythonPackage
, fetchPypi
, psutil
, python
}:

buildPythonPackage rec {
  pname = "memory_profiler";
  version = "0.54.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "d64342a23f32e105f4929b408a8b89d9222c3ce8afbbb3359817555811448d1a";
  };

  propagatedBuildInputs = [ psutil ];

  checkPhase = ''
    make test PYTHON=${python.interpreter}
  '';

  # Tests don't import profile
  # doCheck = false;

  meta = with stdenv.lib; {
    description = "A module for monitoring memory usage of a python program";
    homepage = https://pypi.python.org/pypi/memory_profiler;
    license = licenses.bsd3;
  };

}