84cb9d505d
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
44 lines
1,009 B
Nix
44 lines
1,009 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub
|
|
, mock
|
|
, nose
|
|
, plotly
|
|
, pytest
|
|
, requests
|
|
, retrying
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chart-studio";
|
|
version = "5.3.1";
|
|
|
|
# chart-studio was split from plotly
|
|
src = fetchFromGitHub {
|
|
owner = "plotly";
|
|
repo = "plotly.py";
|
|
rev = "v${version}";
|
|
sha256 = "11jazr5s2rmcxbkpb79gllwlyxvji3f0ryfrj7mkbyvfnfv43gly";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|