2018-10-15 23:50:34 +02:00
|
|
|
{ stdenv
|
2018-10-25 22:26:16 +02:00
|
|
|
, python
|
2018-10-15 23:50:34 +02:00
|
|
|
}:
|
|
|
|
|
2018-10-30 11:18:59 +01:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2018-10-15 23:50:34 +02:00
|
|
|
pname = "memory_profiler";
|
2019-01-13 23:30:50 +01:00
|
|
|
version = "0.55.0";
|
2018-10-15 23:50:34 +02:00
|
|
|
|
2018-10-30 11:18:59 +01:00
|
|
|
src = python.pkgs.fetchPypi {
|
2018-10-15 23:50:34 +02:00
|
|
|
inherit pname version;
|
2019-01-13 23:30:50 +01:00
|
|
|
sha256 = "1hdgh5f59bya079w4ahx4l0hf4gc5yvaz44irp5x57cj9hkpp92z";
|
2018-10-15 23:50:34 +02:00
|
|
|
};
|
|
|
|
|
2018-10-30 11:18:59 +01:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
psutil # needed to profile child processes
|
|
|
|
matplotlib # needed for plotting memory usage
|
|
|
|
];
|
2018-10-15 23:50:34 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-10-30 11:18:59 +01:00
|
|
|
description = "A module for monitoring memory usage of a process";
|
|
|
|
longDescription = ''
|
|
|
|
This is a python module for monitoring memory consumption of a process as
|
|
|
|
well as line-by-line analysis of memory consumption for python programs.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pypi.python.org/pypi/memory_profiler";
|
2018-10-15 23:50:34 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|