about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cufflinks/default.nix
blob: 18693a204c532b27edd426ce8798c892b633bfac (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
{ buildPythonPackage, stdenv, fetchPypi, fetchpatch
, numpy, pandas, plotly, six, colorlover
, ipython, ipywidgets, nose
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "014098a4568199957198c0a7fe3dbeb3b4010b6de8d692a41fe3b3ac107b660e";
  };

  propagatedBuildInputs = [
    numpy pandas plotly six colorlover
    ipython ipywidgets
  ];

  patches = [
    # Plotly 3.8 compatibility. Remove with the next release. See https://github.com/santosjorge/cufflinks/pull/178
    (fetchpatch {
      url = "https://github.com/santosjorge/cufflinks/commit/cc4c23c2b45b870f6801d1cb0312948e1f73f424.patch";
      sha256 = "1psl2h7vscpzvb4idr6s175v8znl2mfhkcyhb1926p4saswmghw1";
    })
  ];

  checkInputs = [ nose ];

  checkPhase = ''
    nosetests -xv tests.py
  '';

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