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