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