2019-02-24 15:26:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, bokeh
|
|
|
|
, holoviews
|
|
|
|
, pandas
|
|
|
|
, pytest
|
|
|
|
, parameterized
|
|
|
|
, nbsmoke
|
|
|
|
, flake8
|
|
|
|
, coveralls
|
|
|
|
, xarray
|
|
|
|
, networkx
|
|
|
|
, streamz
|
2019-11-28 06:34:45 +00:00
|
|
|
, colorcet
|
2020-06-02 14:05:41 +01:00
|
|
|
, pythonImportsCheckHook
|
2019-02-24 15:26:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hvplot";
|
2020-11-29 14:04:30 +00:00
|
|
|
version = "0.7.0";
|
2019-02-24 15:26:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:30 +00:00
|
|
|
sha256 = "1c709bebb737ebd71a0433f2333ed15f03dd3c431d4646c41c2b9fcbae4a29b7";
|
2019-02-24 15:26:44 +00:00
|
|
|
};
|
|
|
|
|
2020-06-02 14:05:41 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonImportsCheckHook
|
|
|
|
];
|
|
|
|
|
2019-02-24 15:26:44 +00:00
|
|
|
checkInputs = [ pytest parameterized nbsmoke flake8 coveralls xarray networkx streamz ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bokeh
|
2019-11-28 06:34:45 +00:00
|
|
|
colorcet
|
2019-02-24 15:26:44 +00:00
|
|
|
holoviews
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
# many tests require a network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-02 14:05:41 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"hvplot.pandas"
|
|
|
|
];
|
|
|
|
|
2019-02-24 15:26:44 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A high-level plotting API for the PyData ecosystem built on HoloViews";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://hvplot.pyviz.org";
|
2019-02-24 15:26:44 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|