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