2019-10-02 05:40:20 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
|
|
|
, chart-studio
|
|
|
|
, colorlover
|
|
|
|
, ipython
|
|
|
|
, ipywidgets
|
2020-03-18 21:38:42 +01:00
|
|
|
, pytest
|
2020-03-26 19:49:56 +01:00
|
|
|
, nose
|
2019-10-02 05:40:20 +02:00
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, six
|
|
|
|
, statsmodels
|
2017-10-18 16:54:05 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cufflinks";
|
2020-03-18 21:38:42 +01:00
|
|
|
version = "0.17.3";
|
2017-10-18 16:54:05 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-18 21:38:42 +01:00
|
|
|
sha256 = "0i56062k54dlg5iz3qyl1ykww62mpkp8jr4n450h0c60dm0b7ha8";
|
2017-10-18 16:54:05 +02:00
|
|
|
};
|
|
|
|
|
2019-04-03 16:03:54 +02:00
|
|
|
propagatedBuildInputs = [
|
2019-10-02 05:40:20 +02:00
|
|
|
chart-studio
|
|
|
|
colorlover
|
|
|
|
ipython
|
|
|
|
ipywidgets
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
six
|
|
|
|
statsmodels
|
2019-04-03 16:03:54 +02:00
|
|
|
];
|
2017-10-18 16:54:05 +02:00
|
|
|
|
2020-03-26 19:49:56 +01:00
|
|
|
checkInputs = [ pytest nose ];
|
2019-04-03 16:03:54 +02:00
|
|
|
|
2020-03-18 21:38:42 +01:00
|
|
|
# ignore tests which are incompatible with pandas>=1.0
|
|
|
|
# https://github.com/santosjorge/cufflinks/issues/236
|
2019-04-03 16:03:54 +02:00
|
|
|
checkPhase = ''
|
2020-03-18 21:38:42 +01:00
|
|
|
pytest tests.py -k 'not bar_row'
|
2019-04-03 16:03:54 +02:00
|
|
|
'';
|
2017-10-18 16:54:05 +02:00
|
|
|
|
2019-10-02 05:40:20 +02:00
|
|
|
meta = with lib; {
|
2017-10-18 16:54:05 +02:00
|
|
|
description = "Productivity Tools for Plotly + Pandas";
|
2019-10-02 05:40:20 +02:00
|
|
|
homepage = "https://github.com/santosjorge/cufflinks";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ globin ];
|
2017-10-18 16:54:05 +02:00
|
|
|
};
|
|
|
|
}
|