depot/third_party/nixpkgs/pkgs/development/python-modules/chart-studio/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

52 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, plotly
, pytest
, requests
, retrying
, setuptools
, six
}:
buildPythonPackage rec {
pname = "chart-studio";
version = "5.18.0";
pyproject = true;
# chart-studio was split from plotly
src = fetchFromGitHub {
owner = "plotly";
repo = "plotly.py";
rev = "refs/tags/v${version}";
hash = "sha256-hY8R4UjcTI5RBaaRU/oR63taKEgYRI3+oOxNuDWzg20=";
};
sourceRoot = "${src.name}/packages/python/chart-studio";
nativeBuildInputs = [
setuptools
];
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 ];
};
}