Merge pull request #284824 from DerDennisOP/umap-learn

python3Packages.umap-learn: fix umap-learn
This commit is contained in:
Robert Scott 2024-02-06 21:36:40 +00:00 committed by GitHub
commit 189fe8725e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"