2019-10-02 04:38:58 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, plotly
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
, retrying
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chart-studio";
|
2021-08-26 20:38:06 +01:00
|
|
|
version = "5.2.2";
|
2019-10-02 04:38:58 +01:00
|
|
|
|
|
|
|
# chart-studio was split from plotly
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plotly";
|
|
|
|
repo = "plotly.py";
|
2021-03-24 17:41:47 +00:00
|
|
|
rev = "v${version}";
|
2021-08-26 20:38:06 +01:00
|
|
|
sha256 = "14msi6i2caca5riirfv81nskh8w3avnflyr2phm62kygk125h1v7";
|
2019-10-02 04:38:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/packages/python/chart-studio";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
plotly
|
|
|
|
requests
|
|
|
|
retrying
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ mock nose pytest ];
|
|
|
|
# most tests talk to a service
|
|
|
|
checkPhase = ''
|
|
|
|
HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities for interfacing with Plotly's Chart Studio service";
|
|
|
|
homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|