17 buildPythonPackage rec {
20 format = "setuptools";
22 disabled = pythonOlder "3.7";
25 inherit pname version;
26 hash = "sha256-dvcpj7ekbNvsc2+FSXfx4Xlt3y1pdO2n2FnKKEf032Q=";
29 propagatedBuildInputs = [
39 nativeCheckInputs = [ pytestCheckHook ];
42 # specifically needed for darwin
43 export HOME=$(mktemp -d)
44 mkdir -p $HOME/.matplotlib
45 echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
48 pythonImportsCheck = [ "persim" ];
50 disabledTests = lib.optionals (pythonAtLeast "3.10") [
51 # AttributeError: module 'collections' has no attribute 'Iterable'
52 "test_empyt_diagram_list"
53 "test_empty_diagram_list"
55 "test_integer_diagrams"
58 "test_multiple_diagrams"
60 # https://github.com/scikit-tda/persim/issues/67
61 "test_persistenceimager"
62 # ValueError: setting an array element with a sequence
63 "test_exact_critical_pairs"
67 description = "Distances and representations of persistence diagrams";
68 homepage = "https://persim.scikit-tda.org";
69 changelog = "https://github.com/scikit-tda/persim/releases/tag/v${version}";
70 license = licenses.mit;