2018-10-15 22:50:34 +01:00
|
|
|
{ stdenv
|
2018-10-25 21:26:16 +01:00
|
|
|
, python
|
2018-10-15 22:50:34 +01:00
|
|
|
}:
|
|
|
|
|
2018-10-30 10:18:59 +00:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2018-10-15 22:50:34 +01:00
|
|
|
pname = "memory_profiler";
|
2018-10-25 21:26:16 +01:00
|
|
|
version = "0.54.0";
|
2018-10-15 22:50:34 +01:00
|
|
|
|
2018-10-30 10:18:59 +00:00
|
|
|
src = python.pkgs.fetchPypi {
|
2018-10-15 22:50:34 +01:00
|
|
|
inherit pname version;
|
2018-10-30 10:18:59 +00:00
|
|
|
sha256 = "06ld8h8mhm8pk0sv7fxgx0y2q8nri65qlh4vjbs0bq9j7yi44hyn";
|
2018-10-15 22:50:34 +01:00
|
|
|
};
|
|
|
|
|
2018-10-30 10:18:59 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
psutil # needed to profile child processes
|
|
|
|
matplotlib # needed for plotting memory usage
|
|
|
|
];
|
2018-10-15 22:50:34 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-10-30 10:18:59 +00: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.
|
|
|
|
'';
|
2018-10-15 22:50:34 +01:00
|
|
|
homepage = https://pypi.python.org/pypi/memory_profiler;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|