504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub
|
|
, mock
|
|
, nose
|
|
, plotly
|
|
, pytest
|
|
, requests
|
|
, retrying
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chart-studio";
|
|
version = "5.17.0";
|
|
format = "setuptools";
|
|
|
|
# chart-studio was split from plotly
|
|
src = fetchFromGitHub {
|
|
owner = "plotly";
|
|
repo = "plotly.py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Vaa/MgauSoSpzNtRVXq3fQSVqMYzLTqDtIbiHBgrXQY=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/packages/python/chart-studio";
|
|
|
|
propagatedBuildInputs = [
|
|
plotly
|
|
requests
|
|
retrying
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|