diff options
Diffstat (limited to 'pkgs/development/python-modules/persim/default.nix')
-rw-r--r-- | pkgs/development/python-modules/persim/default.nix | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/persim/default.nix b/pkgs/development/python-modules/persim/default.nix index 4ac21159d95..3b2331871fb 100644 --- a/pkgs/development/python-modules/persim/default.nix +++ b/pkgs/development/python-modules/persim/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , buildPythonPackage , fetchPypi , deprecated @@ -9,15 +10,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 +47,27 @@ 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; { + broken = stdenv.isDarwin; description = "Distances and representations of persistence diagrams"; homepage = "https://persim.scikit-tda.org"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } |