diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/umap-learn/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/umap-learn/default.nix | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/umap-learn/default.nix b/nixpkgs/pkgs/development/python-modules/umap-learn/default.nix index e68d0be6ad35..abb17d43040f 100644 --- a/nixpkgs/pkgs/development/python-modules/umap-learn/default.nix +++ b/nixpkgs/pkgs/development/python-modules/umap-learn/default.nix @@ -1,16 +1,24 @@ { lib +, bokeh , buildPythonPackage +, colorcet +, datashader , fetchFromGitHub -, fetchpatch -, keras +, holoviews +, matplotlib , numba , numpy +, pandas , pynndescent , pytestCheckHook , pythonOlder +, scikit-image , scikit-learn , scipy +, seaborn +, tbb , tensorflow +, tensorflow-probability , tqdm }: @@ -19,7 +27,7 @@ buildPythonPackage rec { version = "0.5.5"; format = "setuptools"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "lmcinnes"; @@ -37,10 +45,32 @@ buildPythonPackage rec { tqdm ]; + passthru.optional-dependencies = rec { + plot = [ + bokeh + colorcet + datashader + holoviews + matplotlib + pandas + scikit-image + seaborn + ]; + + parametric_umap = [ + tensorflow + tensorflow-probability + ]; + + tbb = [ + tbb + ]; + + all = plot ++ parametric_umap ++ tbb; + }; + nativeCheckInputs = [ - keras pytestCheckHook - tensorflow ]; preCheck = '' @@ -50,8 +80,9 @@ buildPythonPackage rec { disabledTests = [ # Plot functionality requires additional packages. # These test also fail with 'RuntimeError: cannot cache function' error. - "test_umap_plot_testability" "test_plot_runs_at_all" + "test_umap_plot_testability" + "test_umap_update_large" # Flaky test. Fails with AssertionError sometimes. "test_sparse_hellinger" |