summary refs log tree commit diff
path: root/pkgs/development/python-modules/umap-learn/default.nix
blob: a97f69652e8e66bb66d034c39fdfa7a31810c487 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, numpy
, scikitlearn
, scipy
, numba
}:

buildPythonPackage rec {
  pname = "umap-learn";
  version = "0.3.10";

  src = fetchFromGitHub {
    owner = "lmcinnes";
    repo = "umap";
    rev = version;
    sha256 = "0nck5va5km7qkbrhn15dsn0p2mms9kc641lcypy7l8haqgm44h8x";
  };

  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";
    homepage = http://github.com/lmcinnes/umap;
    license = licenses.bsd3;
    maintainers = [ maintainers.costrouc ];
  };
}