summary refs log tree commit diff
path: root/pkgs/development/python-modules/cufflinks/default.nix
blob: 4c2db1f52146c088b9dfa30667e1c7a8423a550e (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
{ lib, buildPythonPackage, fetchPypi, fetchpatch
, chart-studio
, colorlover
, ipython
, ipywidgets
, pytest
, nose
, numpy
, pandas
, six
, statsmodels
}:

buildPythonPackage rec {
  pname = "cufflinks";
  version = "0.17.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0i56062k54dlg5iz3qyl1ykww62mpkp8jr4n450h0c60dm0b7ha8";
  };

  propagatedBuildInputs = [
    chart-studio
    colorlover
    ipython
    ipywidgets
    numpy
    pandas
    six
    statsmodels
  ];

  checkInputs = [ pytest nose ];

  # ignore tests which are incompatible with pandas>=1.0
  # https://github.com/santosjorge/cufflinks/issues/236
  checkPhase = ''
    pytest tests.py -k 'not bar_row'
  '';

  meta = with lib; {
    description = "Productivity Tools for Plotly + Pandas";
    homepage = "https://github.com/santosjorge/cufflinks";
    license = licenses.mit;
    maintainers = with maintainers; [ globin ];
  };
}