10 buildPythonPackage rec {
15 inherit pname version;
16 sha256 = "993f1a3599ca3f4fcd7160c7545ad06310c9e12f70174ae7ae8d4e25f6c5d3fa";
20 # Fixes a TypeError on Python 3.11
21 # (see https://github.com/pympler/pympler/issues/148)
22 # https://github.com/pympler/pympler/pull/149
24 name = "${pname}-python-3.11-compat.patch";
25 url = "https://github.com/pympler/pympler/commit/0fd8ad8da39207bd0dcb28bdac0407e04744c965.patch";
26 hash = "sha256-6MK0AuhVhQkUzlk29HUh1+mSbfsVTBJ1YBtYNIFhh7U=";
34 # There is a version of bottle bundled with Pympler, but it is broken on
35 # Python 3.11. Fortunately, Pympler will preferentially import an external
36 # bottle if it is available, so we make it an explicit dependency.
37 propagatedBuildInputs = [
42 # 'AssertionError: 'function (test.muppy.test_summary.func)' != 'function (muppy.test_summary.func)'
43 # https://github.com/pympler/pympler/issues/134
45 ] ++ lib.optionals (pythonAtLeast "3.11") [
46 # https://github.com/pympler/pympler/issues/148
52 doCheck = stdenv.hostPlatform.isLinux;
55 description = "Tool to measure, monitor and analyze memory behavior";
56 homepage = "https://pythonhosted.org/Pympler/";
57 license = licenses.asl20;