2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, python
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python.pkgs.buildPythonPackage rec {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "memory-profiler";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.61.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "memory_profiler";
|
|
|
|
inherit version;
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-Tltz14ZKHRKS+3agPoKj5475NNBoKKaY2dradtogZ7A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
psutil # needed to profile child processes
|
|
|
|
matplotlib # needed for plotting memory usage
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "https://pypi.python.org/pypi/memory_profiler";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|