2019-07-13 01:36:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, scikitlearn
|
|
|
|
, scipy
|
|
|
|
, numba
|
2020-10-14 11:55:45 +01:00
|
|
|
, pytestCheckHook
|
2019-07-13 01:36:31 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "umap-learn";
|
2020-10-14 11:55:45 +01:00
|
|
|
version = "0.4.5";
|
2019-07-13 01:36:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lmcinnes";
|
|
|
|
repo = "umap";
|
|
|
|
rev = version;
|
2020-10-14 11:55:45 +01:00
|
|
|
sha256 = "080by8h4rxr5ijx8vp8kn952chiqz029j26c04k4js4g9s7201bq";
|
2019-07-13 01:36:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
2020-10-14 11:55:45 +01:00
|
|
|
pytestCheckHook
|
2019-07-13 01:36:31 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
2020-10-14 11:55:45 +01:00
|
|
|
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"
|
2019-07-13 01:36:31 +01:00
|
|
|
|
2020-10-14 11:55:45 +01:00
|
|
|
# Flaky test. Fails with AssertionError sometimes.
|
|
|
|
"test_sparse_hellinger"
|
|
|
|
];
|
2019-07-13 01:36:31 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Uniform Manifold Approximation and Projection";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lmcinnes/umap";
|
2019-07-13 01:36:31 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|