1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/development/python-modules/memory_profiler/default.nix
2018-10-26 16:37:52 +02:00

33 lines
639 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, psutil
, python
}:
buildPythonPackage rec {
pname = "memory_profiler";
version = "0.54.0";
src = fetchPypi {
inherit pname version;
sha256 = "d64342a23f32e105f4929b408a8b89d9222c3ce8afbbb3359817555811448d1a";
};
propagatedBuildInputs = [ psutil ];
checkPhase = ''
make test PYTHON=${python.interpreter}
'';
# Tests don't import profile
# doCheck = false;
meta = with stdenv.lib; {
description = "A module for monitoring memory usage of a python program";
homepage = https://pypi.python.org/pypi/memory_profiler;
license = licenses.bsd3;
};
}