python310Packages.persim: disable failing tests on Python 3.10

This commit is contained in:
Fabian Affolter 2022-05-24 12:32:14 +02:00
parent b7874eee05
commit d69a2ffcea

View File

@ -9,15 +9,20 @@
, scikit-learn
, scipy
, pytestCheckHook
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "persim";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "ef0f0a247adcf6104ecac14117db0b24581710ea8a8d964816805395700b4975";
sha256 = "sha256-7w8KJHrc9hBOysFBF9sLJFgXEOqKjZZIFoBTlXALSXU=";
};
propagatedBuildInputs = [
@ -41,10 +46,26 @@ buildPythonPackage rec {
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
'';
pythonImportsCheck = [
"persim"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# AttributeError: module 'collections' has no attribute 'Iterable'
"test_empyt_diagram_list"
"test_empty_diagram_list"
"test_fit_diagram"
"test_integer_diagrams"
"test_lists_of_lists"
"test_mixed_pairs"
"test_multiple_diagrams"
"test_n_pixels"
];
meta = with lib; {
description = "Distances and representations of persistence diagrams";
homepage = "https://persim.scikit-tda.org";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}