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