Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / chart-studio / default.nix
blob4f78d8728120cda39cf0b2efa115d07852fdc693
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , nose
6 , plotly
7 , pytest
8 , requests
9 , retrying
10 , setuptools
11 , six
14 buildPythonPackage rec {
15   pname = "chart-studio";
16   version = "5.20.0";
17   pyproject = true;
19   # chart-studio was split from plotly
20   src = fetchFromGitHub {
21     owner = "plotly";
22     repo = "plotly.py";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-i//LKTNmoIrusBnpfSGc9cDijPxg/dY/7fumV3kfTAY=";
25   };
27   sourceRoot = "${src.name}/packages/python/chart-studio";
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     plotly
35     requests
36     retrying
37     six
38   ];
40   nativeCheckInputs = [ mock nose pytest ];
41   # most tests talk to a service
42   checkPhase = ''
43     HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
44   '';
46   meta = with lib; {
47     description = "Utilities for interfacing with Plotly's Chart Studio service";
48     homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
49     license = with licenses; [ mit ];
50     maintainers = with maintainers; [ jonringer ];
51   };