1{
2 lib,
3 python,
4 fetchPypi,
5}:
6
7python.pkgs.buildPythonPackage rec {
8 pname = "memory-profiler";
9 version = "0.61.0";
10 format = "setuptools";
11
12 src = fetchPypi {
13 pname = "memory_profiler";
14 inherit version;
15 hash = "sha256-Tltz14ZKHRKS+3agPoKj5475NNBoKKaY2dradtogZ7A=";
16 };
17
18 propagatedBuildInputs = with python.pkgs; [
19 psutil # needed to profile child processes
20 matplotlib # needed for plotting memory usage
21 ];
22
23 meta = with lib; {
24 description = "Module for monitoring memory usage of a process";
25 mainProgram = "mprof";
26 longDescription = ''
27 This is a python module for monitoring memory consumption of a process as
28 well as line-by-line analysis of memory consumption for python programs.
29 '';
30 homepage = "https://pypi.python.org/pypi/memory_profiler";
31 license = licenses.bsd3;
32 };
33}