about summary refs log tree commit diff
path: root/pkgs/development/python-modules/memory-profiler
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-10-09 18:12:56 +0900
committernatsukium <tomoya.otabi@gmail.com>2023-10-09 18:12:56 +0900
commitbcc9e70d26f31284d73089c88a3628a168d0d2db (patch)
treee058bab9da720ac4aa9eda2518062eeae004e6be /pkgs/development/python-modules/memory-profiler
parent79c799f5764ab96f66279e52cc612f2c06cac4eb (diff)
python311Packages.memory-profiler: rename from memory_profiler
Diffstat (limited to 'pkgs/development/python-modules/memory-profiler')
-rw-r--r--pkgs/development/python-modules/memory-profiler/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/memory-profiler/default.nix b/pkgs/development/python-modules/memory-profiler/default.nix
new file mode 100644
index 0000000000000..218772a1527ec
--- /dev/null
+++ b/pkgs/development/python-modules/memory-profiler/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, python
+, fetchPypi
+}:
+
+python.pkgs.buildPythonPackage rec {
+  pname = "memory-profiler";
+  version = "0.61.0";
+
+  src = fetchPypi {
+    pname = "memory_profiler";
+    inherit version;
+    sha256 = "sha256-Tltz14ZKHRKS+3agPoKj5475NNBoKKaY2dradtogZ7A=";
+  };
+
+  propagatedBuildInputs = with python.pkgs; [
+    psutil # needed to profile child processes
+    matplotlib # needed for plotting memory usage
+  ];
+
+  meta = with lib; {
+    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;
+  };
+}