2019-07-13 01:36:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, scikitlearn
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "umap-learn";
|
2019-09-28 19:50:09 +01:00
|
|
|
version = "0.3.10";
|
2019-07-13 01:36:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lmcinnes";
|
|
|
|
repo = "umap";
|
|
|
|
rev = version;
|
2019-09-28 19:50:09 +01:00
|
|
|
sha256 = "0nck5va5km7qkbrhn15dsn0p2mms9kc641lcypy7l8haqgm44h8x";
|
2019-07-13 01:36:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace umap/tests/test_umap.py \
|
|
|
|
--replace "def test_umap_transform_on_iris()" "@SkipTest
|
|
|
|
def test_umap_transform_on_iris()"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -s umap
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|