nixpkgs/pkgs/development/python-modules/cufflinks/default.nix

49 lines
908 B
Nix
Raw Normal View History

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