1{ lib, buildPythonPackage, fetchPypi
2, chart-studio
3, colorlover
4, ipython
5, ipywidgets
6, pytest
7, nose
8, numpy
9, pandas
10, six
11, statsmodels
12}:
13
14buildPythonPackage rec {
15 pname = "cufflinks";
16 version = "0.17.3";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "0i56062k54dlg5iz3qyl1ykww62mpkp8jr4n450h0c60dm0b7ha8";
21 };
22
23 propagatedBuildInputs = [
24 chart-studio
25 colorlover
26 ipython
27 ipywidgets
28 numpy
29 pandas
30 six
31 statsmodels
32 ];
33
34 nativeCheckInputs = [ pytest nose ];
35
36 # ignore tests which are incompatible with pandas>=1.0
37 # https://github.com/santosjorge/cufflinks/issues/236
38 checkPhase = ''
39 pytest tests.py -k 'not bar_row'
40 '';
41
42 meta = with lib; {
43 description = "Productivity Tools for Plotly + Pandas";
44 homepage = "https://github.com/santosjorge/cufflinks";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ];
47 };
48}