Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / chart-studio / default.nix
blob6679f13b1196cd6f297d38587dc3f2c504537b69
1 { lib, buildPythonPackage, fetchFromGitHub
2 , mock
3 , nose
4 , plotly
5 , pytest
6 , requests
7 , retrying
8 , six
9 }:
11 buildPythonPackage rec {
12   pname = "chart-studio";
13   version = "1.1.0";
15   # chart-studio was split from plotly
16   src = fetchFromGitHub {
17     owner = "plotly";
18     repo = "plotly.py";
19     rev = "${pname}-v${version}";
20     sha256 = "1q3j3ih5k0jhr8ilwffkfxp1nifpnjnx7862bzhxfg4d386hfg4i";
21   };
23   sourceRoot = "source/packages/python/chart-studio";
25   propagatedBuildInputs = [
26     plotly
27     requests
28     retrying
29     six
30   ];
32   checkInputs = [ 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   '';
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   };