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