2021-01-11 07:54:33 +00:00
|
|
|
{ lib, 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";
|
2019-01-13 22:30:50 +00:00
|
|
|
version = "0.55.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;
|
2019-01-13 22:30:50 +00:00
|
|
|
sha256 = "1hdgh5f59bya079w4ahx4l0hf4gc5yvaz44irp5x57cj9hkpp92z";
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/memory_profiler";
|
2018-10-15 22:50:34 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|