From c18e7de036625a81b8266cf41ed755fb8b4d69d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 24 May 2022 21:44:44 +0200 Subject: python39Packages.umap-learn: disable flaky test --- .../python-modules/umap-learn/default.nix | 27 ++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/umap-learn/default.nix b/pkgs/development/python-modules/umap-learn/default.nix index 1281d90cdaf..25016f9b4cc 100644 --- a/pkgs/development/python-modules/umap-learn/default.nix +++ b/pkgs/development/python-modules/umap-learn/default.nix @@ -1,43 +1,45 @@ { lib , buildPythonPackage , fetchFromGitHub -, nose +, keras +, numba , numpy +, pynndescent +, pytestCheckHook +, pythonOlder , scikit-learn , scipy -, numba -, pynndescent , tensorflow , tqdm -, pytestCheckHook -, keras }: buildPythonPackage rec { pname = "umap-learn"; version = "0.5.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "lmcinnes"; repo = "umap"; rev = version; - sha256 = "sha256-S2+k7Ec4AxsN6d0GUGnU81oLnBgmlZp8OmUFCNaUJYw="; + hash = "sha256-S2+k7Ec4AxsN6d0GUGnU81oLnBgmlZp8OmUFCNaUJYw="; }; propagatedBuildInputs = [ + numba numpy + pynndescent scikit-learn scipy - numba - pynndescent tqdm ]; checkInputs = [ - nose - tensorflow - pytestCheckHook keras + pytestCheckHook + tensorflow ]; preCheck = '' @@ -52,6 +54,7 @@ buildPythonPackage rec { # Flaky test. Fails with AssertionError sometimes. "test_sparse_hellinger" + "test_densmap_trustworthiness_on_iris_supervised" # tensorflow maybe incompatible? https://github.com/lmcinnes/umap/issues/821 "test_save_load" @@ -61,6 +64,6 @@ buildPythonPackage rec { description = "Uniform Manifold Approximation and Projection"; homepage = "https://github.com/lmcinnes/umap"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; } -- cgit 1.4.1