2019-05-09 03:53:09 +01:00
|
|
|
{ buildPythonPackage, stdenv, fetchPypi, fetchpatch
|
2019-04-03 15:03:54 +01:00
|
|
|
, numpy, pandas, plotly, six, colorlover
|
|
|
|
, ipython, ipywidgets, nose
|
2017-10-18 15:54:05 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cufflinks";
|
2019-04-03 15:03:54 +01:00
|
|
|
version = "0.15";
|
2017-10-18 15:54:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-03 15:03:54 +01:00
|
|
|
sha256 = "014098a4568199957198c0a7fe3dbeb3b4010b6de8d692a41fe3b3ac107b660e";
|
2017-10-18 15:54:05 +01:00
|
|
|
};
|
|
|
|
|
2019-04-03 15:03:54 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy pandas plotly six colorlover
|
|
|
|
ipython ipywidgets
|
|
|
|
];
|
2017-10-18 15:54:05 +01:00
|
|
|
|
2019-05-09 03:53:09 +01:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-03 15:03:54 +01:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -xv tests.py
|
|
|
|
'';
|
2017-10-18 15:54:05 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/santosjorge/cufflinks;
|
|
|
|
description = "Productivity Tools for Plotly + Pandas";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ globin ];
|
|
|
|
};
|
|
|
|
}
|