python3Packages.pympler: 1.0.1 -> 1.1

This commit is contained in:
Martin Weinelt
2024-10-13 11:09:05 +02:00
parent 91181aadbb
commit 5e81e3f8ae
@@ -3,45 +3,42 @@
stdenv,
bottle,
buildPythonPackage,
fetchpatch,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "pympler";
version = "1.0.1";
version = "1.1";
pyproject = true;
src = fetchPypi {
pname = "Pympler";
inherit version;
sha256 = "993f1a3599ca3f4fcd7160c7545ad06310c9e12f70174ae7ae8d4e25f6c5d3fa";
inherit pname version;
hash = "sha256-HqqGfLiZLCGEMPFwj9rM2lPfBkFE0cVlax5vHuYABCQ=";
};
patches = [
# Fixes a TypeError on Python 3.11
# (see https://github.com/pympler/pympler/issues/148)
# https://github.com/pympler/pympler/pull/149
(fetchpatch {
name = "Pympler-python-3.11-compat.patch";
url = "https://github.com/pympler/pympler/commit/0fd8ad8da39207bd0dcb28bdac0407e04744c965.patch";
hash = "sha256-6MK0AuhVhQkUzlk29HUh1+mSbfsVTBJ1YBtYNIFhh7U=";
})
];
nativeCheckInputs = [ pytestCheckHook ];
build-system = [ setuptools ];
# There is a version of bottle bundled with Pympler, but it is broken on
# Python 3.11. Fortunately, Pympler will preferentially import an external
# bottle if it is available, so we make it an explicit dependency.
propagatedBuildInputs = [ bottle ];
dependencies = [ bottle ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests =
[
# 'AssertionError: 'function (test.muppy.test_summary.func)' != 'function (muppy.test_summary.func)'
# https://github.com/pympler/pympler/issues/134
"test_repr_function"
# Stuck
"test_locals"
"test_globals"
"test_traceback"
"test_otracker_diff"
"test_stracker_store_summary"
]
++ lib.optionals (pythonAtLeast "3.11") [
# https://github.com/pympler/pympler/issues/148
@@ -54,7 +51,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Tool to measure, monitor and analyze memory behavior";
homepage = "https://pythonhosted.org/Pympler/";
homepage = "https://github.com/pympler/pympler";
license = licenses.asl20;
};
}