2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-17 05:31:08 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-04-01 05:11:10 +01:00
|
|
|
, pytestCheckHook
|
2018-10-17 05:31:08 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Pympler";
|
2021-12-24 19:09:56 +00:00
|
|
|
version = "1.0.1";
|
2018-10-17 05:31:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-24 19:09:56 +00:00
|
|
|
sha256 = "993f1a3599ca3f4fcd7160c7545ad06310c9e12f70174ae7ae8d4e25f6c5d3fa";
|
2018-10-17 05:31:08 +01:00
|
|
|
};
|
|
|
|
|
2022-04-01 05:11:10 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# 'AssertionError: 'function (test.muppy.test_summary.func)' != 'function (muppy.test_summary.func)'
|
|
|
|
# https://github.com/pympler/pympler/issues/134
|
|
|
|
"test_repr_function"
|
|
|
|
];
|
2018-10-17 05:31:08 +01:00
|
|
|
|
|
|
|
doCheck = stdenv.hostPlatform.isLinux;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 05:31:08 +01:00
|
|
|
description = "Tool to measure, monitor and analyze memory behavior";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pythonhosted.org/Pympler/";
|
2018-10-17 05:31:08 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|