summary refs log tree commit diff
path: root/pkgs/development/python-modules/odo/default.nix
blob: 6e82119faa57730381a0848ff1829e925cdb3296 (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
50
51
52
53
54
55
56
57
58
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, datashape
, numpy
, pandas
, toolz
, multipledispatch
, networkx
, dask
}:

buildPythonPackage rec {
  pname = "odo";
  version= "unstable-2019-07-16";

  src = fetchFromGitHub {
    owner = "blaze";
    repo = pname;
    rev = "9fce6690b3666160681833540de6c55e922de5eb";
    sha256 = "0givkd5agr05wrf72fbghdaav6gplx7c069ngs1ip385v72ifsl9";
  };

  checkInputs = [
    pytest
    dask
  ];

  propagatedBuildInputs = [
    datashape
    numpy
    pandas
    toolz
    multipledispatch
    networkx
  ];

  postConfigure = ''
    substituteInPlace setup.py \
      --replace "versioneer.get_version()" "'0.5.1'"
  '';

  # disable 6/315 tests
  checkPhase = ''
    pytest odo -k "not test_insert_to_ooc \
               and not test_datetime_index \
               and not test_different_encoding \
               and not test_numpy_asserts_type_after_dataframe"
  '';

  meta = with lib; {
    homepage = https://github.com/ContinuumIO/odo;
    description = "Data migration utilities";
    license = licenses.bsdOriginal;
    maintainers = with maintainers; [ fridh costrouc ];
  };
}