1{ lib, buildPythonPackage, fetchFromGitHub
2, mock
3, nose
4, plotly
5, pytest
6, requests
7, retrying
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "chart-studio";
13 version = "5.17.0";
14
15 # chart-studio was split from plotly
16 src = fetchFromGitHub {
17 owner = "plotly";
18 repo = "plotly.py";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-Vaa/MgauSoSpzNtRVXq3fQSVqMYzLTqDtIbiHBgrXQY=";
21 };
22
23 sourceRoot = "${src.name}/packages/python/chart-studio";
24
25 propagatedBuildInputs = [
26 plotly
27 requests
28 retrying
29 six
30 ];
31
32 nativeCheckInputs = [ mock nose pytest ];
33 # most tests talk to a service
34 checkPhase = ''
35 HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
36 '';
37
38 meta = with lib; {
39 description = "Utilities for interfacing with Plotly's Chart Studio service";
40 homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ jonringer ];
43 };
44}